Tangential velocity is now added to the linear velocity when the current velocity is calculated for the calculation of the damping force in btGeneric6DofSpring2Constraint.

Better mass estimation while calculating spring forces in btGeneric6DofSpring2Constraint.
BT_6DOF_FLAGS_USE_INFINITE_ERROR flag has been removed as it's no longer needed.
This commit is contained in:
a
2018-12-01 12:19:18 +01:00
parent d9fd6bf134
commit 9160d0aee1
2 changed files with 20 additions and 10 deletions

View File

@@ -265,7 +265,6 @@ enum bt6DofFlags2
BT_6DOF_FLAGS_ERP_STOP2 = 2,
BT_6DOF_FLAGS_CFM_MOTO2 = 4,
BT_6DOF_FLAGS_ERP_MOTO2 = 8,
BT_6DOF_FLAGS_USE_INFINITE_ERROR = (1<<16),
};
#define BT_6DOF_FLAGS_AXIS_SHIFT2 4 // bits per axis