![]() |
ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represents a fixed joint that is used to forbid any translation or rotation between two bodies. More...
#include <include/reactphysics3d/constraint/FixedJoint.h>
Public Member Functions | |
| FixedJoint (Entity entity, PhysicsWorld &world, const FixedJointInfo &jointInfo) | |
| Constructor. | |
| virtual | ~FixedJoint () override=default |
| Destructor. | |
| FixedJoint (const FixedJoint &constraint)=delete | |
| Deleted copy-constructor. | |
| virtual Vector3 | getReactionForce (decimal timeStep) const override |
| Return the force (in Newtons) on body 2 required to satisfy the joint constraint in world-space. | |
| virtual Vector3 | getReactionTorque (decimal timeStep) const override |
| Return the torque (in Newtons * meters) on body 2 required to satisfy the joint constraint in world-space. | |
| virtual std::string | to_string () const override |
| Return a string representation. | |
| FixedJoint & | operator= (const FixedJoint &constraint)=delete |
| Deleted assignment operator. | |
Public Member Functions inherited from reactphysics3d::Joint | |
| Joint (Entity entity, PhysicsWorld &world) | |
| Constructor. | |
| virtual | ~Joint ()=default |
| Destructor. | |
| Joint (const Joint &constraint)=delete | |
| Deleted copy-constructor. | |
| Joint & | operator= (const Joint &constraint)=delete |
| Deleted assignment operator. | |
| RigidBody * | getBody1 () const |
| Return the reference to the body 1. | |
| RigidBody * | getBody2 () const |
| Return the reference to the body 2. | |
| JointType | getType () const |
| Return the type of the constraint. | |
| bool | isCollisionEnabled () const |
| Return true if the collision between the two bodies of the joint is enabled. | |
| Entity | getEntity () const |
| Return the entity id of the joint. | |
This class represents a fixed joint that is used to forbid any translation or rotation between two bodies.
|
overridevirtual |
Return the force (in Newtons) on body 2 required to satisfy the joint constraint in world-space.
Implements reactphysics3d::Joint.
|
overridevirtual |
Return the torque (in Newtons * meters) on body 2 required to satisfy the joint constraint in world-space.
Implements reactphysics3d::Joint.
|
overridevirtual |
Return a string representation.
Implements reactphysics3d::Joint.