bugfix: adding static objects will 'replace' previously added static object in game engine. need to use new motion state.
This commit is contained in:
parent
62ac9cba9c
commit
5c8d1352ea
@ -104,12 +104,13 @@ public:
|
||||
|
||||
};
|
||||
|
||||
|
||||
void CcdPhysicsController::CreateRigidbody()
|
||||
{
|
||||
|
||||
btTransform trans = GetTransformFromMotionState(m_cci.m_MotionState);
|
||||
btTransform trans = GetTransformFromMotionState(m_MotionState);
|
||||
|
||||
m_bulletMotionState = new BlenderBulletMotionState(m_cci.m_MotionState);
|
||||
m_bulletMotionState = new BlenderBulletMotionState(m_MotionState);
|
||||
|
||||
m_body = new btRigidBody(m_cci.m_mass,
|
||||
m_bulletMotionState,
|
||||
|
Loading…
Reference in New Issue
Block a user