Panda3D
|
Descriptor class for PhysxPlaneShape. More...
#include "physxPlaneShapeDesc.h"
Public Member Functions | |
bool | is_valid () const |
Returns true if the descriptor is valid. | |
NxShapeDesc * | ptr () const |
void | set_plane (const LVector3f &normal, float d) |
Sets the parameters of the plane equation. | |
void | set_to_default () |
(re)sets the structure to the default. | |
Public Attributes | |
NxPlaneShapeDesc | _desc |
Descriptor class for PhysxPlaneShape.
Definition at line 29 of file physxPlaneShapeDesc.h.
bool PhysxPlaneShapeDesc::is_valid | ( | ) | const [inline, virtual] |
Returns true if the descriptor is valid.
Implements PhysxShapeDesc.
Definition at line 56 of file physxPlaneShapeDesc.I.
void PhysxPlaneShapeDesc::set_plane | ( | const LVector3f & | normal, |
float | d | ||
) |
Sets the parameters of the plane equation.
normal: Plane normal. d: The distance from the origin.
Definition at line 26 of file physxPlaneShapeDesc.cxx.
References LVecBase3f::is_nan(), and PhysxManager::vec3_to_nxVec3().
void PhysxPlaneShapeDesc::set_to_default | ( | ) | [inline, virtual] |
(re)sets the structure to the default.
Implements PhysxShapeDesc.
Definition at line 44 of file physxPlaneShapeDesc.I.
References PhysxShapeDesc::set_name().