Internal component storing Jolt Physics constraint data.
More...
#include <ConstraintInternal.hpp>
|
| JPH::Constraint * | constraint = nullptr |
| | Pointer to the Jolt constraint object.
|
| ConstraintType | type = ConstraintType::Fixed |
| | Type of the constraint for runtime identification.
|
| bool | broken = false |
| | Whether this constraint has been broken (exceeded force/torque thresholds).
|
| float | breakForce = 0.0f |
| | Settings used to create this constraint (for force monitoring).
|
| float | breakTorque = 0.0f |
Internal component storing Jolt Physics constraint data.
This component is managed automatically by the ConstraintSystem and should never be added/removed manually by users.
- Warning
- Internal use only! Do not use directly.
◆ ConstraintInternal() [1/3]
| Physics::Component::ConstraintInternal::ConstraintInternal |
( |
| ) |
|
|
default |
Default constructor (invalid constraint).
◆ ConstraintInternal() [2/3]
| Physics::Component::ConstraintInternal::ConstraintInternal |
( |
JPH::Constraint * | c, |
|
|
ConstraintType | t ) |
|
inline |
Construct with constraint pointer and type.
- Parameters
-
| c | Pointer to the Jolt constraint |
| t | Type of the constraint |
◆ ConstraintInternal() [3/3]
| Physics::Component::ConstraintInternal::ConstraintInternal |
( |
JPH::Constraint * | c, |
|
|
ConstraintType | t, |
|
|
float | force, |
|
|
float | torque ) |
|
inline |
Construct with constraint pointer, type, and breaking thresholds.
- Parameters
-
| c | Pointer to the Jolt constraint |
| t | Type of the constraint |
| force | Breaking force threshold |
| torque | Breaking torque threshold |
◆ IsBreakable()
| bool Physics::Component::ConstraintInternal::IsBreakable |
( |
| ) |
const |
|
inlinenodiscard |
Check if this constraint is breakable.
- Returns
- true if either breakForce or breakTorque is greater than 0
◆ IsValid()
| bool Physics::Component::ConstraintInternal::IsValid |
( |
| ) |
const |
|
inlinenodiscard |
Check if this component has a valid constraint.
- Returns
- true if the constraint pointer is valid
◆ breakForce
| float Physics::Component::ConstraintInternal::breakForce = 0.0f |
Settings used to create this constraint (for force monitoring).
◆ breakTorque
| float Physics::Component::ConstraintInternal::breakTorque = 0.0f |
◆ broken
| bool Physics::Component::ConstraintInternal::broken = false |
Whether this constraint has been broken (exceeded force/torque thresholds).
◆ constraint
| JPH::Constraint* Physics::Component::ConstraintInternal::constraint = nullptr |
Pointer to the Jolt constraint object.
◆ type
Type of the constraint for runtime identification.
The documentation for this struct was generated from the following file: