Panda3D
Public Member Functions | Static Public Member Functions
PhysxSphericalJoint Class Reference

A sphere joint constrains two points on two bodies to coincide. More...

#include "physxSphericalJoint.h"

Inheritance diagram for PhysxSphericalJoint:
PhysxJoint PhysxObject PhysxEnums TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
bool get_flag (PhysxSphericalJointFlag flag) const
 Returns the value of a single SphericalJointFlag.
PhysxProjectionMode get_projection_mode () const
 Returns the current projection mode settings.
virtual TypeHandle get_type () const
void link (NxJoint *jointPtr)
void load_from_desc (const PhysxSphericalJointDesc &jointDesc)
 Loads the entire state of the joint from a descriptor with a single call.
NxJoint * ptr () const
void save_to_desc (PhysxSphericalJointDesc &jointDesc) const
 Saves the state of the joint object to a descriptor.
void set_flag (PhysxSphericalJointFlag flag, bool value)
 Sets or clears a single SphericalJointFlag.
void set_projection_mode (PhysxProjectionMode mode)
 Sets the joint projection mode.
void unlink ()

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Detailed Description

A sphere joint constrains two points on two bodies to coincide.

This point, specified in world space (this guarantees that the points coincide to start with) is the only parameter that has to be specified.

Definition at line 33 of file physxSphericalJoint.h.


Member Function Documentation

bool PhysxSphericalJoint::get_flag ( PhysxSphericalJointFlag  flag) const

Returns the value of a single SphericalJointFlag.

Definition at line 130 of file physxSphericalJoint.cxx.

PhysxEnums::PhysxProjectionMode PhysxSphericalJoint::get_projection_mode ( ) const

Returns the current projection mode settings.

Definition at line 97 of file physxSphericalJoint.cxx.

static void PhysxSphericalJoint::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from PhysxJoint.

Definition at line 63 of file physxSphericalJoint.h.

References PhysxJoint::init_type().

Loads the entire state of the joint from a descriptor with a single call.

Definition at line 73 of file physxSphericalJoint.cxx.

Saves the state of the joint object to a descriptor.

Definition at line 60 of file physxSphericalJoint.cxx.

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

Sets or clears a single SphericalJointFlag.

Definition at line 109 of file physxSphericalJoint.cxx.

void PhysxSphericalJoint::set_projection_mode ( PhysxProjectionMode  mode)

Sets the joint projection mode.

Definition at line 85 of file physxSphericalJoint.cxx.


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