Physics Component that represents a joint between rigidbodies. Intended to be connected to a Entity and registered in a scene.
More...
#include <Components.hpp>
|
| Joint (Ref< RigidBody > &otherRigidBody, float maxLength) |
| Connect two rigid-bodies at their respective centers at a given distance apart. More...
|
|
| Joint (glm::vec3 selfPosition, glm::vec3 globalPosition) |
| tether local entity position to a global coordinate position More...
|
|
| Joint (glm::vec3 globalPosition, float maxLength=0) |
| tether entity to a global coordinate More...
|
|
|
glm::vec3 | positionA = {0,0,0} |
|
glm::vec3 | positionB {} |
|
Ref< RigidBody > | connectedRigidBody = nullptr |
|
float | minLength = 0 |
|
float | maxLength = 0 |
|
float | springConstant = 0 |
|
Ref< RigidBody > | rigidBody = nullptr |
|
Physics Component that represents a joint between rigidbodies. Intended to be connected to a Entity and registered in a scene.
◆ Joint() [1/3]
Engine::Joint::Joint |
( |
Ref< RigidBody > & |
otherRigidBody, |
|
|
float |
maxLength |
|
) |
| |
|
inlineexplicit |
Connect two rigid-bodies at their respective centers at a given distance apart.
- Parameters
-
◆ Joint() [2/3]
Engine::Joint::Joint |
( |
glm::vec3 |
selfPosition, |
|
|
glm::vec3 |
globalPosition |
|
) |
| |
|
inline |
tether local entity position to a global coordinate position
- Parameters
-
selfPosition | |
globalPosition | |
◆ Joint() [3/3]
Engine::Joint::Joint |
( |
glm::vec3 |
globalPosition, |
|
|
float |
maxLength = 0 |
|
) |
| |
|
inlineexplicit |
tether entity to a global coordinate
- Parameters
-
globalPosition | |
maxLength | maximum length of the joint (default 0) |
The documentation for this struct was generated from the following file: