PixelLightAPI  .
Public Member Functions | Protected Member Functions | Protected Attributes
PLPhysics::BodyEllipsoid Class Reference

Abstract PL physics ellipsoid body. More...

#include <BodyEllipsoid.h>

Inheritance diagram for PLPhysics::BodyEllipsoid:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual PLPHYSICS_API ~BodyEllipsoid ()
 Destructor.
PLPHYSICS_API const
PLMath::Vector3
GetRadius () const
 Returns the ellipsoid radius along each axis.

Protected Member Functions

PLPHYSICS_API BodyEllipsoid (World &cWorld, BodyImpl &cBodyImpl, const PLMath::Vector3 &vRadius)
 Constructor.

Protected Attributes

PLMath::Vector3 m_vRadius

Detailed Description

Abstract PL physics ellipsoid body.

Remarks:
Sphere collision are generalized ellipsoids, the application can create many different kind of objects by just playing with dimensions of the radius. For example to make a sphere set all tree radius to the same value, to make a ellipse of revolution just set two of the tree radius to the same value.
General ellipsoids are very good hull geometries to represent the outer shell of avatars in a game.

Constructor & Destructor Documentation

virtual PLPHYSICS_API PLPhysics::BodyEllipsoid::~BodyEllipsoid ( ) [virtual]

Destructor.

PLPHYSICS_API PLPhysics::BodyEllipsoid::BodyEllipsoid ( World cWorld,
BodyImpl &  cBodyImpl,
const PLMath::Vector3 vRadius 
) [protected]

Constructor.

Parameters:
[in]cWorldWorld this body is in
[in]cBodyImplReference to the physics API specific body implementation
[in]vRadiusEllipsoid radius along each axis

Member Function Documentation

PLPHYSICS_API const PLMath::Vector3& PLPhysics::BodyEllipsoid::GetRadius ( ) const

Returns the ellipsoid radius along each axis.

Returns:
The ellipsoid radius along each axis

Member Data Documentation

Ellipsoid radius along each axis


The documentation for this class was generated from the following file:


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:37
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported