29#ifndef PX_GEAR_JOINT_H
30#define PX_GEAR_JOINT_H
35#include "extensions/PxJoint.h"
55 PxGearJoint*
PxGearJointCreate(PxPhysics& physics, PxRigidActor* actor0,
const PxTransform& localFrame0, PxRigidActor* actor1,
const PxTransform& localFrame1);
111 PX_INLINE PxGearJoint(PxBaseFlags baseFlags) : PxJoint(baseFlags) {}
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
A joint that connects two existing revolute joints and constrains their relative angular velocity and...
Definition PxGearJoint.h:63
virtual void setGearRatio(float ratio)=0
Set the desired gear ratio.
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxGearJoint.h:113
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxGearJoint.h:105
virtual float getGearRatio() const =0
Get the gear ratio.
virtual bool setHinges(const PxBase *hinge0, const PxBase *hinge1)=0
Set the hinge/revolute joints connected by the gear joint.
a base interface providing common functionality for PhysX joints
Definition PxJoint.h:105
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxJoint.h:379
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxGearJoint * PxGearJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a gear Joint.
Definition ExtGearJoint.cpp:299