29#ifndef PX_RACK_AND_PINION_JOINT_H
30#define PX_RACK_AND_PINION_JOINT_H
35#include "extensions/PxJoint.h"
42 class PxRackAndPinionJoint;
55 PxRackAndPinionJoint*
PxRackAndPinionJointCreate(PxPhysics& physics, PxRigidActor* actor0,
const PxTransform& localFrame0, PxRigidActor* actor1,
const PxTransform& localFrame1);
118 virtual bool setData(PxU32 nbRackTeeth, PxU32 nbPinionTeeth,
float rackLength) = 0;
126 PX_INLINE PxRackAndPinionJoint(PxBaseFlags baseFlags) : PxJoint(baseFlags) {}
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
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
A joint that connects an existing revolute joint to an existing prismatic joint, and constrains their...
Definition PxRackAndPinionJoint.h:64
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxRackAndPinionJoint.h:128
virtual void setRatio(float ratio)=0
Set the desired ratio directly.
virtual float getRatio() const =0
Get the ratio.
virtual bool setJoints(const PxBase *hinge, const PxBase *prismatic)=0
Set the hinge & prismatic joints connected by the rack & pinion joint.
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition PxRackAndPinionJoint.h:120
virtual bool setData(PxU32 nbRackTeeth, PxU32 nbPinionTeeth, float rackLength)=0
Set the desired ratio indirectly.
#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
PxRackAndPinionJoint * PxRackAndPinionJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a rack & pinion Joint.
Definition ExtRackAndPinionJoint.cpp:373