Ball-in-socket Joint, specifying an anchor on each body will constrain the two bodies at those points.
More...
#include "spherical_joint.hpp"
Ball-in-socket Joint, specifying an anchor on each body will constrain the two bodies at those points.
◆ SphericalJoint()
| SphericalJoint::SphericalJoint |
( |
unsigned int |
indexA, |
|
|
vec3 |
anchorA, |
|
|
unsigned int |
indexB, |
|
|
vec3 |
anchorB |
|
) |
| |
◆ applyImpulse()
| int SphericalJoint::applyImpulse |
( |
| ) |
|
◆ preStep()
| int SphericalJoint::preStep |
( |
float |
dt | ) |
|
◆ allJoints
◆ anchor_a
| vec3 SphericalJoint::anchor_a |
◆ anchor_a_ws
| vec3 SphericalJoint::anchor_a_ws |
◆ anchor_b
| vec3 SphericalJoint::anchor_b |
◆ anchor_b_ws
| vec3 SphericalJoint::anchor_b_ws |
◆ bias
| vec3 SphericalJoint::bias = vec3(0,0,0) |
◆ body_a
◆ body_a_index
| unsigned int SphericalJoint::body_a_index |
◆ body_b
◆ body_b_index
| unsigned int SphericalJoint::body_b_index |
◆ dt
| float SphericalJoint::dt = 0.02f |
◆ effective_mass
| mat3 SphericalJoint::effective_mass = mat3(0.0f) |
| vec3 SphericalJoint::P = vec3(0,0,0) |
◆ unset
| bool SphericalJoint::unset = true |
The documentation for this class was generated from the following file: