Panda3D
Public Member Functions | Public Attributes
PhysxSphericalJointDesc Class Reference

Descriptor class for distance joint. More...

#include "physxSphericalJointDesc.h"

Inheritance diagram for PhysxSphericalJointDesc:
PhysxJointDesc PhysxEnums

List of all members.

Public Member Functions

bool get_flag (PhysxSphericalJointFlag flag) const
PhysxSpringDesc get_joint_spring () const
float get_projection_distance () const
PhysxProjectionMode get_projection_mode () const
LVector3f get_swing_axis () const
PhysxJointLimitDesc get_swing_limit () const
 Limits swing of twist axis.
PhysxSpringDesc get_swing_spring () const
PhysxJointLimitDesc get_twist_limit_high () const
PhysxJointLimitDesc get_twist_limit_low () const
PhysxSpringDesc get_twist_spring () const
bool is_valid () const
 Returns true if the descriptor is valid.
NxJointDesc * ptr () const
void set_flag (PhysxSphericalJointFlag flag, bool value)
 Sets or clears a single SphericalJointFlag flag.
void set_joint_spring (const PhysxSpringDesc &spring)
 Sets a spring that lets the joint get pulled apart.
void set_projection_distance (float distance)
 Set the distance above which to project joint.
void set_projection_mode (PhysxProjectionMode mode)
 Use this to enable joint projection.
void set_swing_axis (const LVector3f &axis)
 Set the swing limit axis defined in the joint space of actor 0.
void set_swing_limit (const PhysxJointLimitDesc &limit)
 Limits swing of twist axis.
void set_swing_spring (const PhysxSpringDesc &spring)
 Sets a spring that works against swinging.
void set_to_default ()
 (re)sets the structure to the default.
void set_twist_limit_high (const PhysxJointLimitDesc &high)
 Limits rotation around twist axis.
void set_twist_limit_low (const PhysxJointLimitDesc &low)
 Limits rotation around twist axis.
void set_twist_spring (const PhysxSpringDesc &spring)
 Sets a spring that works against twisting.

Public Attributes

NxSphericalJointDesc _desc

Detailed Description

Descriptor class for distance joint.

See PhysxSphericalJoint.

Definition at line 31 of file physxSphericalJointDesc.h.


Member Function Documentation

Limits swing of twist axis.

Definition at line 253 of file physxSphericalJointDesc.cxx.

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

Returns true if the descriptor is valid.

Implements PhysxJointDesc.

Definition at line 56 of file physxSphericalJointDesc.I.

void PhysxSphericalJointDesc::set_flag ( PhysxSphericalJointFlag  flag,
bool  value 
)

Sets or clears a single SphericalJointFlag flag.

Definition at line 37 of file physxSphericalJointDesc.cxx.

Sets a spring that lets the joint get pulled apart.

Definition at line 75 of file physxSphericalJointDesc.cxx.

Set the distance above which to project joint.

Definition at line 26 of file physxSphericalJointDesc.cxx.

void PhysxSphericalJointDesc::set_projection_mode ( PhysxProjectionMode  mode)

Use this to enable joint projection.

Default is PM_none.

Definition at line 100 of file physxSphericalJointDesc.cxx.

Set the swing limit axis defined in the joint space of actor 0.

Definition at line 87 of file physxSphericalJointDesc.cxx.

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

Limits swing of twist axis.

Definition at line 133 of file physxSphericalJointDesc.cxx.

Sets a spring that works against swinging.

Definition at line 64 of file physxSphericalJointDesc.cxx.

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

(re)sets the structure to the default.

Implements PhysxJointDesc.

Definition at line 44 of file physxSphericalJointDesc.I.

References PhysxJointDesc::set_name().

Limits rotation around twist axis.

Definition at line 122 of file physxSphericalJointDesc.cxx.

Limits rotation around twist axis.

Definition at line 111 of file physxSphericalJointDesc.cxx.

Sets a spring that works against twisting.

Definition at line 53 of file physxSphericalJointDesc.cxx.


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