Panda3D
Public Member Functions | Public Attributes

PhysxRevoluteJointDesc Class Reference

Descriptor class for distance joint. More...

#include "physxRevoluteJointDesc.h"

Inheritance diagram for PhysxRevoluteJointDesc:
PhysxJointDesc PhysxEnums

List of all members.

Public Member Functions

bool get_flag (PhysxRevoluteJointFlag flag) const
PhysxJointLimitDesc get_limit_high () const
PhysxJointLimitDesc get_limit_low () const
PhysxMotorDesc get_motor () const
 Sets an optional joint motor.
float get_projection_angle () const
 Return the angle beyond which the joint is projected.
float get_projection_distance () const
 Return the distance beyond which the joint is projected.
PhysxProjectionMode get_projection_mode () const
PhysxSpringDesc get_spring () const
bool is_valid () const
 Returns true if the descriptor is valid.
NxJointDesc * ptr () const
void set_flag (PhysxRevoluteJointFlag flag, bool value)
 Sets or clears a single RevoluteJointFlag flag.
void set_limit_high (const PhysxJointLimitDesc &high)
 Sets optional limits for the angular motion of the joint.
void set_limit_low (const PhysxJointLimitDesc &low)
 Sets optional limits for the angular motion of the joint.
void set_motor (const PhysxMotorDesc &motor)
 Sets an optional joint motor.
void set_projection_angle (float angle)
 Sets the angle beyond which the joint is projected.
void set_projection_distance (float distance)
 Sets the distance beyond which the joint is projected.
void set_projection_mode (PhysxProjectionMode mode)
 Use this to enable joint projection.
void set_spring (const PhysxSpringDesc &spring)
 Sets an aptional spring.
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxRevoluteJointDesc _desc

Detailed Description

Descriptor class for distance joint.

See PhysxRevoluteJoint.

Definition at line 32 of file physxRevoluteJointDesc.h.


Member Function Documentation

PhysxMotorDesc PhysxRevoluteJointDesc::get_motor ( ) const

Sets an optional joint motor.

Definition at line 182 of file physxRevoluteJointDesc.cxx.

float PhysxRevoluteJointDesc::get_projection_angle ( ) const

Return the angle beyond which the joint is projected.

Definition at line 136 of file physxRevoluteJointDesc.cxx.

float PhysxRevoluteJointDesc::get_projection_distance ( ) const

Return the distance beyond which the joint is projected.

Definition at line 124 of file physxRevoluteJointDesc.cxx.

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

Returns true if the descriptor is valid.

Implements PhysxJointDesc.

Definition at line 56 of file physxRevoluteJointDesc.I.

void PhysxRevoluteJointDesc::set_flag ( PhysxRevoluteJointFlag  flag,
bool  value 
)

Sets or clears a single RevoluteJointFlag flag.

Definition at line 60 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_limit_high ( const PhysxJointLimitDesc high)

Sets optional limits for the angular motion of the joint.

Definition at line 112 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_limit_low ( const PhysxJointLimitDesc low)

Sets optional limits for the angular motion of the joint.

Definition at line 100 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_motor ( const PhysxMotorDesc motor)

Sets an optional joint motor.

Definition at line 88 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_projection_angle ( float  angle)

Sets the angle beyond which the joint is projected.

Definition at line 38 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_projection_distance ( float  distance)

Sets the distance beyond which the joint is projected.

Definition at line 27 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_projection_mode ( PhysxProjectionMode  mode)

Use this to enable joint projection.

Default is PM_none.

Definition at line 77 of file physxRevoluteJointDesc.cxx.

void PhysxRevoluteJointDesc::set_spring ( const PhysxSpringDesc spring)

Sets an aptional spring.

Definition at line 49 of file physxRevoluteJointDesc.cxx.

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

(re)sets the structure to the default.

Implements PhysxJointDesc.

Definition at line 44 of file physxRevoluteJointDesc.I.

References PhysxJointDesc::set_name().


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