Panda3D
Public Member Functions | Public Attributes

PhysxPlaneShapeDesc Class Reference

Descriptor class for PhysxPlaneShape. More...

#include "physxPlaneShapeDesc.h"

Inheritance diagram for PhysxPlaneShapeDesc:
PhysxShapeDesc PhysxEnums ReferenceCount MemoryBase

List of all members.

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

Detailed Description

Descriptor class for PhysxPlaneShape.

Definition at line 29 of file physxPlaneShapeDesc.h.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations