|
group2 0.1.0
CSE 125 Group 2
|
Cone-twist joint — locks anchors AND constrains relative rotation to a swing-cone + twist-limit. More...
#include <Joints.hpp>
Public Attributes | |
| entt::entity | bodyA {entt::null} |
| entt::entity | bodyB {entt::null} |
| glm::vec3 | localAnchorA {0.0f} |
| glm::vec3 | localAnchorB {0.0f} |
| glm::quat | localFrameA {1.0f, 0.0f, 0.0f, 0.0f} |
| Rest orientation in A's space. | |
| glm::quat | localFrameB {1.0f, 0.0f, 0.0f, 0.0f} |
| float | swingLimit = 0.6f |
| Max half-cone angle, radians (~35°). | |
| float | twistLimit = 0.5f |
| Max twist about cone axis, radians. | |
| glm::vec3 | accumulatedAnchorImpulse {0.0f} |
| glm::vec3 | accumulatedAngularImpulse {0.0f} |
Cone-twist joint — locks anchors AND constrains relative rotation to a swing-cone + twist-limit.
Standard ragdoll shoulder / hip joint.
| glm::vec3 physics::ConeTwistJoint::accumulatedAnchorImpulse {0.0f} |
| glm::vec3 physics::ConeTwistJoint::accumulatedAngularImpulse {0.0f} |
| entt::entity physics::ConeTwistJoint::bodyA {entt::null} |
| entt::entity physics::ConeTwistJoint::bodyB {entt::null} |
| glm::vec3 physics::ConeTwistJoint::localAnchorA {0.0f} |
| glm::vec3 physics::ConeTwistJoint::localAnchorB {0.0f} |
| glm::quat physics::ConeTwistJoint::localFrameA {1.0f, 0.0f, 0.0f, 0.0f} |
Rest orientation in A's space.
| glm::quat physics::ConeTwistJoint::localFrameB {1.0f, 0.0f, 0.0f, 0.0f} |
| float physics::ConeTwistJoint::swingLimit = 0.6f |
Max half-cone angle, radians (~35°).
| float physics::ConeTwistJoint::twistLimit = 0.5f |
Max twist about cone axis, radians.