Blender V4.3
btHingeConstraint.cpp File Reference

Go to the source code of this file.

Macros

#define HINGE_USE_OBSOLETE_SOLVER   false
 
#define HINGE_USE_FRAME_OFFSET   true
 

Functions

static btScalar btNormalizeAnglePositive (btScalar angle)
 
static btScalar btShortestAngularDistance (btScalar accAngle, btScalar curAngle)
 
static btScalar btShortestAngleUpdate (btScalar accAngle, btScalar curAngle)
 
static btVector3 vHinge (0, 0, btScalar(1))
 

Macro Definition Documentation

◆ HINGE_USE_FRAME_OFFSET

#define HINGE_USE_FRAME_OFFSET   true

Definition at line 26 of file btHingeConstraint.cpp.

◆ HINGE_USE_OBSOLETE_SOLVER

#define HINGE_USE_OBSOLETE_SOLVER   false

Definition at line 24 of file btHingeConstraint.cpp.

Function Documentation

◆ btNormalizeAnglePositive()

static btScalar btNormalizeAnglePositive ( btScalar angle)
inlinestatic

Definition at line 290 of file btHingeConstraint.cpp.

References btFmod(), and SIMD_PI.

Referenced by btShortestAngularDistance().

◆ btShortestAngleUpdate()

static btScalar btShortestAngleUpdate ( btScalar accAngle,
btScalar curAngle )
static

Definition at line 302 of file btHingeConstraint.cpp.

References btFabs(), btShortestAngularDistance(), and result.

Referenced by getAccumulatedHingeAngle().

◆ btShortestAngularDistance()

static btScalar btShortestAngularDistance ( btScalar accAngle,
btScalar curAngle )
static

Definition at line 295 of file btHingeConstraint.cpp.

References btNormalizeAngle(), btNormalizeAnglePositive(), and result.

Referenced by btShortestAngleUpdate().

◆ vHinge()

static btVector3 vHinge ( 0 ,
0 ,
btScalar(1)  )
static

Referenced by setMotorTarget().