group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
physics::ConeTwistJoint Struct Reference

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}

Detailed Description

Cone-twist joint — locks anchors AND constrains relative rotation to a swing-cone + twist-limit.

Standard ragdoll shoulder / hip joint.

Member Data Documentation

◆ accumulatedAnchorImpulse

glm::vec3 physics::ConeTwistJoint::accumulatedAnchorImpulse {0.0f}

◆ accumulatedAngularImpulse

glm::vec3 physics::ConeTwistJoint::accumulatedAngularImpulse {0.0f}

◆ bodyA

entt::entity physics::ConeTwistJoint::bodyA {entt::null}

◆ bodyB

entt::entity physics::ConeTwistJoint::bodyB {entt::null}

◆ localAnchorA

glm::vec3 physics::ConeTwistJoint::localAnchorA {0.0f}

◆ localAnchorB

glm::vec3 physics::ConeTwistJoint::localAnchorB {0.0f}

◆ localFrameA

glm::quat physics::ConeTwistJoint::localFrameA {1.0f, 0.0f, 0.0f, 0.0f}

Rest orientation in A's space.

◆ localFrameB

glm::quat physics::ConeTwistJoint::localFrameB {1.0f, 0.0f, 0.0f, 0.0f}

◆ swingLimit

float physics::ConeTwistJoint::swingLimit = 0.6f

Max half-cone angle, radians (~35°).

◆ twistLimit

float physics::ConeTwistJoint::twistLimit = 0.5f

Max twist about cone axis, radians.


The documentation for this struct was generated from the following file: