Panda3D
Public Member Functions

PhysxJointDesc Class Reference

Abstract base class for joint descriptors. More...

#include "physxJointDesc.h"

Inheritance diagram for PhysxJointDesc:
PhysxEnums PhysxCylindricalJointDesc PhysxD6JointDesc PhysxDistanceJointDesc PhysxFixedJointDesc PhysxPointInPlaneJointDesc PhysxPointOnLineJointDesc PhysxPrismaticJointDesc PhysxPulleyJointDesc PhysxRevoluteJointDesc PhysxSphericalJointDesc

List of all members.

Public Member Functions

PhysxActorget_actor (unsigned int idx) const
bool get_joint_flag (PhysxJointFlag flag) const
LPoint3f get_local_anchor (unsigned int idx) const
LVector3f get_local_axis (unsigned int idx) const
LVector3f get_local_normal (unsigned int idx) const
float get_max_force () const
float get_max_torque () const
const char * get_name () const
float get_solver_extrapolation_factor () const
virtual bool is_valid () const =0
virtual NxJointDesc * ptr () const =0
void set_actor (unsigned int idx, const PhysxActor &actor)
 Set the two actors connected by the joint.
void set_global_anchor (const LPoint3f &anchor)
 Set the anchor using a world space point.
void set_global_axis (const LVector3f &axis)
 Set the local axis/normal using a world space axis.
void set_joint_flag (PhysxJointFlag flag, bool value)
 Set or clear a single JointFlag.
void set_local_anchor (unsigned int idx, const LPoint3f &anchor)
 Set the attachment point of joint in actor[i]'s space.
void set_local_axis (unsigned int idx, const LVector3f &axis)
 Set the Z axis of joint space, in actor[i]'s space.
void set_local_normal (unsigned int idx, const LVector3f &normal)
 Set the X axis of joint space, in actor[i]'s space, orthogonal to localAxis[i].
void set_max_force (float force)
 Set a possible debug name.
void set_max_torque (float torque)
 Set the maximum angular force (torque) that the joint can withstand before breaking, must be positive.
void set_name (const char *name)
 Sets a possible debug name.
void set_solver_extrapolation_factor (float factor)
 Set the extrapolation factor for solving joint constraints.
virtual void set_to_default ()=0

Detailed Description

Abstract base class for joint descriptors.

Definition at line 30 of file physxJointDesc.h.


Member Function Documentation

void PhysxJointDesc::set_actor ( unsigned int  idx,
const PhysxActor actor 
)

Set the two actors connected by the joint.

idx must be either 0 or 1.

Definition at line 73 of file physxJointDesc.cxx.

void PhysxJointDesc::set_global_anchor ( const LPoint3f anchor)

Set the anchor using a world space point.

Definition at line 153 of file physxJointDesc.cxx.

References PhysxManager::point3_to_nxVec3().

void PhysxJointDesc::set_global_axis ( const LVector3f axis)

Set the local axis/normal using a world space axis.

Definition at line 142 of file physxJointDesc.cxx.

References PhysxManager::vec3_to_nxVec3().

void PhysxJointDesc::set_joint_flag ( PhysxJointFlag  flag,
bool  value 
)

Set or clear a single JointFlag.

Definition at line 126 of file physxJointDesc.cxx.

void PhysxJointDesc::set_local_anchor ( unsigned int  idx,
const LPoint3f anchor 
)

Set the attachment point of joint in actor[i]'s space.

idx must be either 0 or 1.

Definition at line 114 of file physxJointDesc.cxx.

References PhysxManager::point3_to_nxVec3().

void PhysxJointDesc::set_local_axis ( unsigned int  idx,
const LVector3f axis 
)

Set the Z axis of joint space, in actor[i]'s space.

This is the primary axis of the joint. idx must be either 0 or 1.

Definition at line 101 of file physxJointDesc.cxx.

References PhysxManager::vec3_to_nxVec3().

void PhysxJointDesc::set_local_normal ( unsigned int  idx,
const LVector3f normal 
)

Set the X axis of joint space, in actor[i]'s space, orthogonal to localAxis[i].

idx must be either 0 or 1.

Definition at line 87 of file physxJointDesc.cxx.

References PhysxManager::vec3_to_nxVec3().

void PhysxJointDesc::set_max_force ( float  force)

Set a possible debug name.

Definition at line 36 of file physxJointDesc.cxx.

void PhysxJointDesc::set_max_torque ( float  torque)

Set the maximum angular force (torque) that the joint can withstand before breaking, must be positive.

Definition at line 49 of file physxJointDesc.cxx.

void PhysxJointDesc::set_name ( const char *  name)
void PhysxJointDesc::set_solver_extrapolation_factor ( float  factor)

Set the extrapolation factor for solving joint constraints.

Definition at line 61 of file physxJointDesc.cxx.


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