Blender  V3.3
Macros | Functions
btHingeConstraint.cpp File Reference
#include "btHingeConstraint.h"
#include "BulletDynamics/Dynamics/btRigidBody.h"
#include "LinearMath/btTransformUtil.h"
#include "LinearMath/btMinMax.h"
#include <new>
#include "btSolverBody.h"

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 angle(), 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 ( ,
,
btScalar(1)   
)
static

Referenced by setMotorTarget().