#[repr(i32)]pub enum Px1DConstraintFlag {
Spring = 1,
AccelerationSpring = 2,
Restitution = 4,
Keepbias = 8,
OutputForce = 16,
HasDriveLimit = 32,
AngularConstraint = 64,
DriveRow = 128,
}Expand description
Constraint row flags
These flags configure the post-processing of constraint rows and the behavior of the solver while solving constraints
Variants§
Spring = 1
whether the constraint is a spring. Mutually exclusive with eRESTITUTION. If set, eKEEPBIAS is ignored.
AccelerationSpring = 2
whether the constraint is a force or acceleration spring. Only valid if eSPRING is set.
Restitution = 4
whether the restitution model should be applied to generate the target velocity. Mutually exclusive with eSPRING. If restitution causes a bounces, eKEEPBIAS is ignored
Keepbias = 8
whether to keep the error term when solving for velocity. Ignored if restitution generates bounce, or eSPRING is set.
OutputForce = 16
whether to accumulate the force value from this constraint in the force total that is reported for the constraint and tested for breakage
HasDriveLimit = 32
whether the constraint has a drive force limit (which will be scaled by dt unless PxConstraintFlag::eLIMITS_ARE_FORCES is set)
AngularConstraint = 64
whether this is an angular or linear constraint
DriveRow = 128
whether the constraint’s geometric error should drive the target velocity
Trait Implementations§
Source§impl Clone for Px1DConstraintFlag
impl Clone for Px1DConstraintFlag
Source§fn clone(&self) -> Px1DConstraintFlag
fn clone(&self) -> Px1DConstraintFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more