Blender V5.0
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

◆ HINGE_USE_OBSOLETE_SOLVER

#define HINGE_USE_OBSOLETE_SOLVER   false

Function Documentation

◆ btNormalizeAnglePositive()

btScalar btNormalizeAnglePositive ( btScalar angle)
inlinestatic

Definition at line 290 of file btHingeConstraint.cpp.

References angle(), btFmod(), and SIMD_PI.

Referenced by btShortestAngularDistance().

◆ btShortestAngleUpdate()

btScalar btShortestAngleUpdate ( btScalar accAngle,
btScalar curAngle )
static

Definition at line 302 of file btHingeConstraint.cpp.

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

Referenced by getAccumulatedHingeAngle().

◆ btShortestAngularDistance()

btScalar btShortestAngularDistance ( btScalar accAngle,
btScalar curAngle )
static

Definition at line 295 of file btHingeConstraint.cpp.

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

Referenced by btShortestAngleUpdate().

◆ vHinge()

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

References btVector3.

Referenced by setMotorTarget().