29#ifndef PX_SPHERICAL_JOINT_H
30#define PX_SPHERICAL_JOINT_H
35#include "extensions/PxJoint.h"
36#include "extensions/PxJointLimit.h"
43class PxSphericalJoint;
56PxSphericalJoint*
PxSphericalJointCreate(PxPhysics& physics, PxRigidActor* actor0,
const PxTransform& localFrame0, PxRigidActor* actor1,
const PxTransform& localFrame1);
71typedef PxFlags<PxSphericalJointFlag::Enum, PxU16> PxSphericalJointFlags;
Describes an elliptical conical joint limit. Note that very small or highly elliptical limit cones ma...
Definition PxJointLimit.h:371
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 which behaves in a similar way to a ball and socket.
Definition PxSphericalJoint.h:89
virtual PxJointLimitCone getLimitCone() const =0
Set the limit cone.
virtual PX_DEPRECATED void setProjectionLinearTolerance(PxReal tolerance)=0
Set the linear tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJEC...
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition PxSphericalJoint.h:208
virtual void setLimitCone(const PxJointLimitCone &limit)=0
Get the limit cone.
virtual PxReal getSwingYAngle() const =0
get the swing angle of the joint from the Y axis
virtual PX_DEPRECATED PxReal getProjectionLinearTolerance() const =0
Get the linear tolerance threshold for projection.
PX_INLINE PxSphericalJoint(PxType concreteType, PxBaseFlags baseFlags)
Constructor.
Definition PxSphericalJoint.h:198
virtual void setSphericalJointFlags(PxSphericalJointFlags flags)=0
Set the flags specific to the Spherical Joint.
PX_INLINE PxSphericalJoint(PxBaseFlags baseFlags)
Deserialization constructor.
Definition PxSphericalJoint.h:203
virtual PxSphericalJointFlags getSphericalJointFlags() const =0
Get the flags specific to the Spherical Joint.
virtual const char * getConcreteTypeName() const
Returns string name of PxSphericalJoint, used for serialization.
Definition PxSphericalJoint.h:189
virtual void setSphericalJointFlag(PxSphericalJointFlag::Enum flag, bool value)=0
Set a single flag specific to a Spherical Joint to true or false.
virtual PxReal getSwingZAngle() const =0
get the swing angle of the joint from the Z axis
#define PX_INLINE
Definition PxPreprocessor.h:320
#define PX_DEPRECATED
Definition PxPreprocessor.h:418
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxSphericalJoint * PxSphericalJointCreate(PxPhysics &physics, PxRigidActor *actor0, const PxTransform &localFrame0, PxRigidActor *actor1, const PxTransform &localFrame1)
Create a spherical joint.
Definition ExtSphericalJoint.cpp:210
Flags specific to the spherical joint.
Definition PxSphericalJoint.h:65
Enum
Definition PxSphericalJoint.h:67
@ eLIMIT_ENABLED
the cone limit for the spherical joint is enabled
Definition PxSphericalJoint.h:68