|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Base interface for all physics joints. More...
#include <IJoint.hpp>


Public Member Functions | |
| void | SetActors (IDynamicCollider actor0, IDynamicCollider actor1) |
| IDynamicCollider | GetActor0 () |
| IDynamicCollider | GetActor1 () |
| void | SetLocalFrame0 (Vector3 position, Quaternion rotation) |
| void | SetLocalFrame1 (Vector3 position, Quaternion rotation) |
| Vector3 | GetLocalFrame0Position () |
| Quaternion | GetLocalFrame0Rotation () |
| Vector3 | GetLocalFrame1Position () |
| Quaternion | GetLocalFrame1Rotation () |
| void | SetBreakForce (float force, float torque) |
| float | GetBreakForce () |
| float | GetBreakTorque () |
| bool | IsBroken () |
| void | GetForce (out Vector3 linear, out Vector3 angular) |
| void | SetDistanceLimit (float minDistance, float maxDistance) |
| void | SetSphericalLimit (float yAngle, float zAngle) |
| void | SetRevoluteLimit (float lower, float upper) |
| void | SetRevoluteDrive (float velocity, float forceLimit, bool freespin) |
| void | SetPrismaticLimit (float lower, float upper) |
| void | SetD6Motion (int axis, int motionType) |
| void | SetD6LinearLimit (float limit) |
| void | SetD6TwistLimit (float lower, float upper) |
| void | SetD6SwingLimit (float yAngle, float zAngle) |
| void | SetD6Drive (int driveType, float stiffness, float damping, float forceLimit, bool acceleration) |
| void | SetD6DrivePosition (Vector3 position, Quaternion rotation) |
| void | SetD6DriveVelocity (Vector3 linear, Vector3 angular) |
| IJoint (IntPtr natPtr) | |
| virtual | ~IJoint ()=default |
| JointType | GetType () const noexcept |
| Gets the joint type. | |
| virtual void | SetActors (IDynamicCollider *actor0, IDynamicCollider *actor1)=0 |
| Sets the actors connected by this joint. | |
| IDynamicCollider * | GetActor0 () const noexcept |
| Gets the first actor in the joint. | |
| IDynamicCollider * | GetActor1 () const noexcept |
| Gets the second actor in the joint. | |
| virtual void | SetLocalFrame0 (const Math::Vector3 &position, const Math::Quaternion &rotation)=0 |
| Sets the local frame for actor 0. | |
| virtual void | SetLocalFrame1 (const Math::Vector3 &position, const Math::Quaternion &rotation)=0 |
| Sets the local frame for actor 1. | |
| Math::Vector3 | GetLocalFrame0Position () const noexcept |
| Gets the local frame position for actor 0. | |
| Math::Quaternion | GetLocalFrame0Rotation () const noexcept |
| Gets the local frame rotation for actor 0. | |
| Math::Vector3 | GetLocalFrame1Position () const noexcept |
| Gets the local frame position for actor 1. | |
| Math::Quaternion | GetLocalFrame1Rotation () const noexcept |
| Gets the local frame rotation for actor 1. | |
| virtual void | SetBreakForce (float force, float torque)=0 |
| Sets the break force and torque thresholds. | |
| float | GetBreakForce () const noexcept |
| Gets the break force threshold. | |
| float | GetBreakTorque () const noexcept |
| Gets the break torque threshold. | |
| bool | IsBroken () const noexcept |
| Returns true if the joint has broken. | |
| virtual void | GetForce (Math::Vector3 &linear, Math::Vector3 &angular)=0 |
| Gets the constraint force applied by the joint. | |
| virtual void | SetDistanceLimit (float minDistance, float maxDistance)=0 |
| Sets distance joint parameters (min/max distance). | |
| virtual void | SetSphericalLimit (float yAngle, float zAngle)=0 |
| Sets spherical joint cone limit (yAngle, zAngle in radians). | |
| virtual void | SetRevoluteLimit (float lower, float upper)=0 |
| Sets revolute joint angular limits (lower, upper in radians). | |
| virtual void | SetRevoluteDrive (float velocity, float forceLimit, bool freespin)=0 |
| Sets revolute joint drive parameters. | |
| virtual void | SetPrismaticLimit (float lower, float upper)=0 |
| Sets prismatic joint linear limits. | |
| virtual void | SetD6Motion (int axis, int motionType)=0 |
| Sets D6 joint motion for a specific axis (0=locked, 1=limited, 2=free). axis: 0-2=translation X/Y/Z, 3=twist, 4-5=swing1/swing2. | |
| virtual void | SetD6LinearLimit (float limit)=0 |
| Sets D6 joint linear limit. | |
| virtual void | SetD6TwistLimit (float lower, float upper)=0 |
| Sets D6 joint twist limit (lower, upper in radians). | |
| virtual void | SetD6SwingLimit (float yAngle, float zAngle)=0 |
| Sets D6 joint swing limit (yAngle, zAngle in radians). | |
| virtual void | SetD6Drive (int driveType, float stiffness, float damping, float forceLimit, bool acceleration)=0 |
| Sets D6 joint drive parameters. driveType: 0=X, 1=Y, 2=Z, 3=Swing, 4=Twist, 5=SLERP. | |
| virtual void | SetD6DrivePosition (const Math::Vector3 &position, const Math::Quaternion &rotation)=0 |
| Sets D6 joint drive position target. | |
| virtual void | SetD6DriveVelocity (const Math::Vector3 &linear, const Math::Vector3 &angular)=0 |
| Sets D6 joint drive velocity target. | |
| Public Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| virtual void | Dispose () |
Protected Member Functions | |
| IJoint (IPhysicsEngine *physics, JointType type) | |
| IJoint (const IJoint &)=delete | |
| IJoint & | operator= (const IJoint &)=delete |
| IJoint (IJoint &&) noexcept=default | |
| IJoint & | operator= (IJoint &&) noexcept=default |
| Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper | |
| NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy) | |
| NatPtrWrapper (Action< IntPtr > fnDestroy) | |
| void | Reset (IntPtr newObj) |
| void | Dispose (bool disposing) |
Protected Attributes | |
| IPhysicsEngine * | _physics |
| JointType | _type |
| IDynamicCollider * | _actor0 |
| IDynamicCollider * | _actor1 |
| Math::Vector3 | _localFrame0Position |
| Math::Quaternion | _localFrame0Rotation |
| Math::Vector3 | _localFrame1Position |
| Math::Quaternion | _localFrame1Rotation |
| float | _breakForce |
| float | _breakTorque |
| bool | _isBroken |
| Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | _handle |
| bool | _disposed |
Properties | |
| JointType | Type [get] |
| Properties inherited from Engine3DRadSpace.NatPtrWrapper | |
| IntPtr | Handle [get] |
Base interface for all physics joints.
|
inline |
|
protected |
|
protecteddelete |
|
protecteddefaultnoexcept |
|
virtualdefault |
|
inline |
|
noexcept |
Gets the first actor in the joint.
|
inline |
|
noexcept |
Gets the second actor in the joint.
|
inline |
|
noexcept |
Gets the break force threshold.
|
inline |
|
noexcept |
Gets the break torque threshold.
|
pure virtual |
Gets the constraint force applied by the joint.
|
inline |
|
noexcept |
Gets the local frame position for actor 0.
|
inline |
|
noexcept |
Gets the local frame rotation for actor 0.
|
inline |
|
noexcept |
Gets the local frame position for actor 1.
|
inline |
|
noexcept |
Gets the local frame rotation for actor 1.
|
noexcept |
Gets the joint type.
|
inline |
|
noexcept |
Returns true if the joint has broken.
|
inline |
|
pure virtual |
Sets the actors connected by this joint.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets the break force and torque thresholds.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
inline |
|
pure virtual |
Sets D6 joint drive parameters. driveType: 0=X, 1=Y, 2=Z, 3=Swing, 4=Twist, 5=SLERP.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
inline |
|
pure virtual |
Sets D6 joint drive position target.
|
pure virtual |
Sets D6 joint drive velocity target.
|
inline |
|
pure virtual |
Sets D6 joint linear limit.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets D6 joint motion for a specific axis (0=locked, 1=limited, 2=free). axis: 0-2=translation X/Y/Z, 3=twist, 4-5=swing1/swing2.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets D6 joint swing limit (yAngle, zAngle in radians).
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets D6 joint twist limit (lower, upper in radians).
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
inline |
|
pure virtual |
Sets distance joint parameters (min/max distance).
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
inline |
|
pure virtual |
Sets the local frame for actor 0.
|
inline |
|
pure virtual |
Sets the local frame for actor 1.
|
pure virtual |
Sets prismatic joint linear limits.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
inline |
|
pure virtual |
Sets revolute joint drive parameters.
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets revolute joint angular limits (lower, upper in radians).
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
pure virtual |
Sets spherical joint cone limit (yAngle, zAngle in radians).
Implemented in Engine3DRadSpace.Physics::NVPhysX::Joint.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
get |