Panda3D
Public Member Functions | Public Attributes | List of all members
PhysxBoxControllerDesc Class Reference

Descriptor class for PhysxBoxController. More...

#include "physxBoxControllerDesc.h"

Inheritance diagram for PhysxBoxControllerDesc:
PhysxControllerDesc

Public Member Functions

LVector3f get_extents () const
 Returns the dimensions of the box. More...
 
bool is_valid () const
 Returns true if the descriptor is valid. More...
 
NxControllerDesc * ptr () const
 
void set_extents (const LVector3f &extents)
 Sets the dimensions of the box. More...
 
void set_to_default ()
 (re)sets the structure to the default. More...
 
- Public Member Functions inherited from PhysxControllerDesc
bool get_interaction_flag () const
 Returns the interaction flag. More...
 
LPoint3f get_pos () const
 Returns the position of the character. More...
 
float get_skin_width () const
 Returns the skin width used by the controller. More...
 
float get_slope_limit () const
 Returns the maximum slope which the character can walk up. More...
 
float get_step_offset () const
 Returns the maximum height of an obstacle which the character can climb. More...
 
void set_interaction_flag (bool interactionFlag)
 The interaction flag controls if a character controller collides with other controllers. More...
 
void set_pos (const LPoint3f &pos)
 Set the position of the character. More...
 
void set_skin_width (float skinWidth)
 Sets the skin width used by the controller. More...
 
void set_slope_limit (float slopeLimit)
 Sets the maximum slope which the character can walk up. More...
 
void set_step_offset (float setpOffset)
 Defines the maximum height of an obstacle which the character can climb. More...
 

Public Attributes

NxBoxControllerDesc _desc
 

Detailed Description

Descriptor class for PhysxBoxController.

Definition at line 26 of file physxBoxControllerDesc.h.

Member Function Documentation

◆ get_extents()

LVector3f PhysxBoxControllerDesc::get_extents ( ) const

Returns the dimensions of the box.

Definition at line 33 of file physxBoxControllerDesc.cxx.

References PhysxManager::nxVec3_to_vec3().

◆ is_valid()

bool PhysxBoxControllerDesc::is_valid ( ) const
inlinevirtual

Returns true if the descriptor is valid.

Implements PhysxControllerDesc.

Definition at line 44 of file physxBoxControllerDesc.I.

◆ set_extents()

void PhysxBoxControllerDesc::set_extents ( const LVector3f &  extents)

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 24 of file physxBoxControllerDesc.cxx.

References PhysxManager::vec3_to_nxVec3().

◆ set_to_default()

void PhysxBoxControllerDesc::set_to_default ( )
inlinevirtual

(re)sets the structure to the default.

Implements PhysxControllerDesc.

Definition at line 35 of file physxBoxControllerDesc.I.


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