pass right friction/restitution/damping values to btRigidBody
authorErwin Coumans <blender@erwincoumans.com>
Thu, 23 Nov 2006 03:26:59 +0000 (03:26 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Thu, 23 Nov 2006 03:26:59 +0000 (03:26 +0000)
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

index 31cea0be9e1cc31bd5dfa37757a276b89a9ff26b..33b0e986a320c9045bbc7a4051dcddd94459caed 100644 (file)
@@ -111,7 +111,13 @@ void CcdPhysicsController::CreateRigidbody()
 
        m_bulletMotionState = new BlenderBulletMotionState(m_cci.m_MotionState);
 
-       m_body = new btRigidBody(m_cci.m_mass,m_bulletMotionState,m_cci.m_collisionShape,m_cci.m_localInertiaTensor * m_cci.m_inertiaFactor,m_cci.m_friction,m_cci.m_restitution);
+       m_body = new btRigidBody(m_cci.m_mass,
+               m_bulletMotionState,
+               m_cci.m_collisionShape,
+               m_cci.m_localInertiaTensor * m_cci.m_inertiaFactor,
+               m_cci.m_linearDamping,m_cci.m_angularDamping,
+               m_cci.m_friction,m_cci.m_restitution);
+
        
 
        //