Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2011, 5:07:42 AM (14 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.

Location:
code/trunk/src/external/bullet/BulletDynamics/Vehicle
Files:
4 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
  • code/trunk/src/external/bullet/BulletDynamics/Vehicle/btRaycastVehicle.h

    r8351 r8393  
    99 * It is provided "as is" without express or implied warranty.
    1010*/
    11 #ifndef RAYCASTVEHICLE_H
    12 #define RAYCASTVEHICLE_H
     11#ifndef BT_RAYCASTVEHICLE_H
     12#define BT_RAYCASTVEHICLE_H
    1313
    1414#include "BulletDynamics/Dynamics/btRigidBody.h"
     
    113113        void    updateWheelTransform( int wheelIndex, bool interpolatedTransform = true );
    114114       
    115         void    setRaycastWheelInfo( int wheelIndex , bool isInContact, const btVector3& hitPoint, const btVector3& hitNormal,btScalar depth);
     115//      void    setRaycastWheelInfo( int wheelIndex , bool isInContact, const btVector3& hitPoint, const btVector3& hitNormal,btScalar depth);
    116116
    117117        btWheelInfo&    addWheel( const btVector3& connectionPointCS0, const btVector3& wheelDirectionCS0,const btVector3& wheelAxleCS,btScalar suspensionRestLength,btScalar wheelRadius,const btVehicleTuning& tuning, bool isFrontWheel);
     
    233233
    234234
    235 #endif //RAYCASTVEHICLE_H
    236 
     235#endif //BT_RAYCASTVEHICLE_H
     236
  • code/trunk/src/external/bullet/BulletDynamics/Vehicle/btVehicleRaycaster.h

    r5781 r8393  
    11/*
    2  * Copyright (c) 2005 Erwin Coumans http://continuousphysics.com/Bullet/
     2 * Copyright (c) 2005 Erwin Coumans http://bulletphysics.org
    33 *
    44 * Permission to use, copy, modify, distribute and sell this software
     
    99 * It is provided "as is" without express or implied warranty.
    1010*/
    11 #ifndef VEHICLE_RAYCASTER_H
    12 #define VEHICLE_RAYCASTER_H
     11#ifndef BT_VEHICLE_RAYCASTER_H
     12#define BT_VEHICLE_RAYCASTER_H
    1313
    1414#include "LinearMath/btVector3.h"
     
    3232};
    3333
    34 #endif //VEHICLE_RAYCASTER_H
     34#endif //BT_VEHICLE_RAYCASTER_H
    3535
  • code/trunk/src/external/bullet/BulletDynamics/Vehicle/btWheelInfo.h

    r8351 r8393  
    99 * It is provided "as is" without express or implied warranty.
    1010*/
    11 #ifndef WHEEL_INFO_H
    12 #define WHEEL_INFO_H
     11#ifndef BT_WHEEL_INFO_H
     12#define BT_WHEEL_INFO_H
    1313
    1414#include "LinearMath/btVector3.h"
     
    116116};
    117117
    118 #endif //WHEEL_INFO_H
     118#endif //BT_WHEEL_INFO_H
    119119
Note: See TracChangeset for help on using the changeset viewer.