prepare to add ForkLiftDemo in App_AllBullet2Demos
rename Ewert/Catto to World/Body for implicit coriolis forces
This commit is contained in:
@@ -107,7 +107,7 @@ void GyroscopicDemo::initPhysics()
|
||||
m_dynamicsWorld->addRigidBody(body);
|
||||
if (gyro[i])
|
||||
{
|
||||
body->setFlags(BT_ENABLE_GYROPSCOPIC_FORCE);
|
||||
body->setFlags(BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY);
|
||||
} else
|
||||
{
|
||||
body->setFlags(0);
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
static int gyroflags[4] = {
|
||||
0,//none, no gyroscopic term
|
||||
BT_ENABLE_GYROSCOPIC_FORCE_EXPLICIT,
|
||||
BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_EWERT,
|
||||
BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_CATTO
|
||||
BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_WORLD,
|
||||
BT_ENABLE_GYROSCOPIC_FORCE_IMPLICIT_BODY
|
||||
};
|
||||
|
||||
static const char* gyroNames[4] = {
|
||||
"No Coriolis",
|
||||
"Explicit",
|
||||
"Implicit",
|
||||
"Local Implicit"
|
||||
"Implicit (World)",
|
||||
"Implicit (Body)"
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user