31#include <Jolt/Physics/Constraints/Constraint.h>
Definition BoxCollider.hpp:27
ConstraintType
Enumeration of supported constraint types.
Definition ConstraintInternal.hpp:38
@ Distance
Distance constraint (5 DOF) - rope/spring with min/max distance.
Definition ConstraintInternal.hpp:40
@ Point
Point constraint (3 DOF) - ball-and-socket joint.
Definition ConstraintInternal.hpp:41
@ Fixed
Fixed constraint (0 DOF) - welds two bodies together.
Definition ConstraintInternal.hpp:39
JPH::Constraint * constraint
Pointer to the Jolt constraint object.
Definition ConstraintInternal.hpp:54
bool broken
Whether this constraint has been broken (exceeded force/torque thresholds).
Definition ConstraintInternal.hpp:60
ConstraintInternal(JPH::Constraint *c, ConstraintType t, float force, float torque)
Construct with constraint pointer, type, and breaking thresholds.
Definition ConstraintInternal.hpp:85
ConstraintInternal(JPH::Constraint *c, ConstraintType t)
Construct with constraint pointer and type.
Definition ConstraintInternal.hpp:76
float breakForce
Settings used to create this constraint (for force monitoring).
Definition ConstraintInternal.hpp:63
bool IsValid() const
Check if this component has a valid constraint.
Definition ConstraintInternal.hpp:94
bool IsBreakable() const
Check if this constraint is breakable.
Definition ConstraintInternal.hpp:100
ConstraintInternal()=default
Default constructor (invalid constraint).
float breakTorque
Definition ConstraintInternal.hpp:64
ConstraintType type
Type of the constraint for runtime identification.
Definition ConstraintInternal.hpp:57