Bullet only: fixed --history function for bullet physics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1234 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
754bd5275c
commit
4dcde604b1
@ -1508,6 +1508,10 @@ void Kart::placeModel ()
|
|||||||
// We don't have to call Moveable::placeModel, since it does only setTransform
|
// We don't have to call Moveable::placeModel, since it does only setTransform
|
||||||
|
|
||||||
#ifdef BULLET
|
#ifdef BULLET
|
||||||
|
// Only transfer the bullet data to the plib tree if no history is being
|
||||||
|
// replayed.
|
||||||
|
if(!user_config->m_replay_history)
|
||||||
|
{
|
||||||
btTransform t;
|
btTransform t;
|
||||||
if(m_rescue)
|
if(m_rescue)
|
||||||
{
|
{
|
||||||
@ -1526,7 +1530,7 @@ void Kart::placeModel ()
|
|||||||
sgSetCoord(&m_curr_pos, m);
|
sgSetCoord(&m_curr_pos, m);
|
||||||
const btVector3 &v=m_kart_body->getLinearVelocity();
|
const btVector3 &v=m_kart_body->getLinearVelocity();
|
||||||
sgSetVec3(m_velocity.xyz, v.x(), v.y(), v.z());
|
sgSetVec3(m_velocity.xyz, v.x(), v.y(), v.z());
|
||||||
|
}
|
||||||
sgCoord c ;
|
sgCoord c ;
|
||||||
sgCopyCoord ( &c, &m_curr_pos ) ;
|
sgCopyCoord ( &c, &m_curr_pos ) ;
|
||||||
// c.hpr[1] += m_wheelie_angle ;
|
// c.hpr[1] += m_wheelie_angle ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user