Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2011, 5:07:42 AM (13 years ago)
Author:
rgrieder
Message:

Updated Bullet from v2.77 to v2.78.
(I'm not going to make a branch for that since the update from 2.74 to 2.77 hasn't been tested that much either).

You will HAVE to do a complete RECOMPILE! I tested with MSVC and MinGW and they both threw linker errors at me.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/external/bullet/BulletDynamics/Vehicle/btRaycastVehicle.cpp

    r8351 r8393  
    2222#include "LinearMath/btIDebugDraw.h"
    2323#include "BulletDynamics/ConstraintSolver/btContactConstraint.h"
     24
     25#define ROLLING_INFLUENCE_FIX
     26
    2427
    2528btRigidBody& btActionInterface::getFixedBody()
     
    695698                                        btVector3 sideImp = m_axle[wheel] * m_sideImpulse[wheel];
    696699
     700#if defined ROLLING_INFLUENCE_FIX // fix. It only worked if car's up was along Y - VT.
     701                                        btVector3 vChassisWorldUp = getRigidBody()->getCenterOfMassTransform().getBasis().getColumn(m_indexUpAxis);
     702                                        rel_pos -= vChassisWorldUp * (vChassisWorldUp.dot(rel_pos) * (1.f-wheelInfo.m_rollInfluence));
     703#else
    697704                                        rel_pos[m_indexUpAxis] *= wheelInfo.m_rollInfluence;
     705#endif
    698706                                        m_chassisBody->applyImpulse(sideImp,rel_pos);
    699707
Note: See TracChangeset for help on using the changeset viewer.