Panda3D
Public Member Functions | Public Attributes
PhysxBoxForceFieldShapeDesc Class Reference

Descriptor for a box force field shape. More...

#include "physxBoxForceFieldShapeDesc.h"

Inheritance diagram for PhysxBoxForceFieldShapeDesc:
PhysxForceFieldShapeDesc

List of all members.

Public Member Functions

LVector3f get_dimensions () const
 Returns the dimensions of the box.
bool is_valid () const
 Returns true if the descriptor is valid.
NxForceFieldShapeDesc * ptr () const
void set_dimensions (const LVector3f &dimensions)
 Sets the dimensions of the box.
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxBoxForceFieldShapeDesc _desc

Detailed Description

Descriptor for a box force field shape.

Definition at line 28 of file physxBoxForceFieldShapeDesc.h.


Member Function Documentation

Returns the dimensions of the box.

Definition at line 40 of file physxBoxForceFieldShapeDesc.cxx.

References PhysxManager::nxVec3_to_vec3().

bool PhysxBoxForceFieldShapeDesc::is_valid ( ) const [inline, virtual]

Returns true if the descriptor is valid.

Implements PhysxForceFieldShapeDesc.

Definition at line 56 of file physxBoxForceFieldShapeDesc.I.

Sets the dimensions of the box.

The dimensions are the 'radii' of the box, meaning 1/2 extents in x dimension, 1/2 extents in y dimension, 1/2 extents in z dimension.

Definition at line 28 of file physxBoxForceFieldShapeDesc.cxx.

References LVecBase3f::is_nan(), and PhysxManager::vec3_to_nxVec3().

void PhysxBoxForceFieldShapeDesc::set_to_default ( ) [inline, virtual]

(re)sets the structure to the default.

Implements PhysxForceFieldShapeDesc.

Definition at line 44 of file physxBoxForceFieldShapeDesc.I.

References PhysxForceFieldShapeDesc::set_name().


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