15 #include "physxControllerDesc.h" 16 #include "physxManager.h" 43 ptr()->slopeLimit = cosf(NxMath::degToRad(slopeLimit));
59 ptr()->skinWidth = skinWidth;
76 ptr()->stepOffset = stepOffset;
89 ptr()->interactionFlag = (NxCCTInteractionFlag)interactionFlag;
112 return NxMath::radToDeg(acosf(ptr()->slopeLimit));
123 return ptr()->skinWidth;
135 return ptr()->stepOffset;
146 return (ptr()->interactionFlag) ? true :
false;
float get_slope_limit() const
Returns the maximum slope which the character can walk up.
bool get_interaction_flag() const
Returns the interaction flag.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
void set_pos(const LPoint3f &pos)
Set the position of the character.
static NxExtendedVec3 point3_to_nxExtVec3(const LPoint3f &p)
Converts from LPoint3f to NxExtendedVec3.
void set_slope_limit(float slopeLimit)
Sets the maximum slope which the character can walk up.
float get_skin_width() const
Returns the skin width used by the controller.
static LPoint3f nxExtVec3_to_point3(const NxExtendedVec3 &p)
Converts from NxExtendedVec3 to LPoint3f.
LPoint3f get_pos() const
Returns the position of the character.
void set_step_offset(float setpOffset)
Defines the maximum height of an obstacle which the character can climb.
void set_interaction_flag(bool interactionFlag)
The interaction flag controls if a character controller collides with other controllers.
void set_skin_width(float skinWidth)
Sets the skin width used by the controller.
float get_step_offset() const
Returns the maximum height of an obstacle which the character can climb.