RavEngine
Loading...
Searching...
No Matches
physx::Px1DConstraintFlag Struct Reference

Constraint row flags. More...

#include <PxConstraintDesc.h>

Public Types

enum  Type {
  eSPRING = 1<<0 , eACCELERATION_SPRING = 1<<1 , eRESTITUTION = 1<<2 , eKEEPBIAS = 1<<3 ,
  eOUTPUT_FORCE = 1<<4 , eHAS_DRIVE_LIMIT = 1<<5 , eANGULAR_CONSTRAINT = 1<<6 , eDRIVE_ROW = 1<<7
}
 

Detailed Description

Constraint row flags.

These flags configure the post-processing of constraint rows and the behavior of the solver while solving constraints

Member Enumeration Documentation

◆ Type

Enumerator
eSPRING 

whether the constraint is a spring. Mutually exclusive with eRESTITUTION. If set, eKEEPBIAS is ignored.

eACCELERATION_SPRING 

whether the constraint is a force or acceleration spring. Only valid if eSPRING is set.

eRESTITUTION 

whether the restitution model should be applied to generate the target velocity. Mutually exclusive with eSPRING. If restitution causes a bounces, eKEEPBIAS is ignored

eKEEPBIAS 

whether to keep the error term when solving for velocity. Ignored if restitution generates bounce, or eSPRING is set.

eOUTPUT_FORCE 

whether to accumulate the force value from this constraint in the force total that is reported for the constraint and tested for breakage

eHAS_DRIVE_LIMIT 

whether the constraint has a drive force limit (which will be scaled by dt unless PxConstraintFlag::eLIMITS_ARE_FORCES is set)

eANGULAR_CONSTRAINT 

whether this is an angular or linear constraint

eDRIVE_ROW 

whether the constraint's geometric error should drive the target velocity


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