Panda3D
Public Member Functions | Public Attributes

PhysxDistanceJointDesc Class Reference

Descriptor class for distance joint. More...

#include "physxDistanceJointDesc.h"

Inheritance diagram for PhysxDistanceJointDesc:
PhysxJointDesc PhysxEnums

List of all members.

Public Member Functions

bool get_flag (PhysxDistanceJointFlag flag) const
 Return a single DistanceJointFlag flag.
float get_max_distance () const
float get_min_distance () const
PhysxSpringDesc get_spring () const
bool is_valid () const
 Returns true if the descriptor is valid.
NxJointDesc * ptr () const
void set_flag (PhysxDistanceJointFlag flag, bool value)
 Sets or clears a single DistanceJointFlag flag.
void set_max_distance (float distance)
 Sets the maximum rest length of the rope or rod between the two anchor points.
void set_min_distance (float distance)
 Sets the minimum rest length of the rope or rod between the two anchor points.
void set_spring (const PhysxSpringDesc &spring)
 Makes the joint springy.
void set_to_default ()
 (re)sets the structure to the default.

Public Attributes

NxDistanceJointDesc _desc

Detailed Description

Descriptor class for distance joint.

See PhysxDistanceJoint.

Definition at line 30 of file physxDistanceJointDesc.h.


Member Function Documentation

bool PhysxDistanceJointDesc::get_flag ( PhysxDistanceJointFlag  flag) const

Return a single DistanceJointFlag flag.

Definition at line 111 of file physxDistanceJointDesc.cxx.

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

Returns true if the descriptor is valid.

Implements PhysxJointDesc.

Definition at line 56 of file physxDistanceJointDesc.I.

void PhysxDistanceJointDesc::set_flag ( PhysxDistanceJointFlag  flag,
bool  value 
)

Sets or clears a single DistanceJointFlag flag.

Definition at line 60 of file physxDistanceJointDesc.cxx.

void PhysxDistanceJointDesc::set_max_distance ( float  distance)

Sets the maximum rest length of the rope or rod between the two anchor points.

Definition at line 25 of file physxDistanceJointDesc.cxx.

void PhysxDistanceJointDesc::set_min_distance ( float  distance)

Sets the minimum rest length of the rope or rod between the two anchor points.

Definition at line 37 of file physxDistanceJointDesc.cxx.

void PhysxDistanceJointDesc::set_spring ( const PhysxSpringDesc spring)

Makes the joint springy.

The spring.targetValue is not used.

Definition at line 49 of file physxDistanceJointDesc.cxx.

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

(re)sets the structure to the default.

Implements PhysxJointDesc.

Definition at line 44 of file physxDistanceJointDesc.I.

References PhysxJointDesc::set_name().


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