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

Spherical/ball joint — locks the world-space anchor points of two bodies together while permitting arbitrary rotation. More...

#include <Joints.hpp>

Public Attributes

entt::entity bodyA {entt::null}
entt::entity bodyB {entt::null}
glm::vec3 localAnchorA {0.0f}
 Anchor in body A's local frame.
glm::vec3 localAnchorB {0.0f}
 Anchor in body B's local frame.
glm::vec3 accumulatedImpulse {0.0f}
 Warm-started across frames.
float breakForce = 0.0f
 If > 0, joint detaches when impulse exceeds.

Detailed Description

Spherical/ball joint — locks the world-space anchor points of two bodies together while permitting arbitrary rotation.

Member Data Documentation

◆ accumulatedImpulse

glm::vec3 physics::PointJoint::accumulatedImpulse {0.0f}

Warm-started across frames.

◆ bodyA

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

◆ bodyB

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

◆ breakForce

float physics::PointJoint::breakForce = 0.0f

If > 0, joint detaches when impulse exceeds.

◆ localAnchorA

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

Anchor in body A's local frame.

◆ localAnchorB

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

Anchor in body B's local frame.


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