fix build for Intel Compiler 11.1 -> move static ::getFixedBody method from header to cpp file.
This commit is contained in:
@@ -1199,4 +1199,10 @@ void btSequentialImpulseConstraintSolver::reset()
|
|||||||
m_btSeed2 = 0;
|
m_btSeed2 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btRigidBody& btSequentialImpulseConstraintSolver::getFixedBody()
|
||||||
|
{
|
||||||
|
static btRigidBody s_fixed(0, 0,0);
|
||||||
|
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
||||||
|
return s_fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,12 +81,8 @@ protected:
|
|||||||
void resolveSingleConstraintRowLowerLimitSIMD(btRigidBody& body1,btRigidBody& body2,const btSolverConstraint& contactConstraint);
|
void resolveSingleConstraintRowLowerLimitSIMD(btRigidBody& body1,btRigidBody& body2,const btSolverConstraint& contactConstraint);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static btRigidBody& getFixedBody()
|
static btRigidBody& getFixedBody();
|
||||||
{
|
|
||||||
static btRigidBody s_fixed(0, 0,0);
|
|
||||||
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
|
||||||
return s_fixed;
|
|
||||||
}
|
|
||||||
virtual void solveGroupCacheFriendlySplitImpulseIterations(btCollisionObject** bodies,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
virtual void solveGroupCacheFriendlySplitImpulseIterations(btCollisionObject** bodies,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
||||||
virtual btScalar solveGroupCacheFriendlyFinish(btCollisionObject** bodies ,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
virtual btScalar solveGroupCacheFriendlyFinish(btCollisionObject** bodies ,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
||||||
btScalar solveSingleIteration(int iteration, btCollisionObject** bodies ,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
btScalar solveSingleIteration(int iteration, btCollisionObject** bodies ,int numBodies,btPersistentManifold** manifoldPtr, int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& infoGlobal,btIDebugDraw* debugDrawer,btStackAlloc* stackAlloc);
|
||||||
|
|||||||
@@ -133,4 +133,10 @@ const char* btTypedConstraint::serialize(void* dataBuffer, btSerializer* seriali
|
|||||||
return "btTypedConstraintData";
|
return "btTypedConstraintData";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
btRigidBody& btTypedConstraint::getFixedBody()
|
||||||
|
{
|
||||||
|
static btRigidBody s_fixed(0, 0,0);
|
||||||
|
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
||||||
|
return s_fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,13 +78,7 @@ protected:
|
|||||||
///internal method used by the constraint solver, don't use them directly
|
///internal method used by the constraint solver, don't use them directly
|
||||||
btScalar getMotorFactor(btScalar pos, btScalar lowLim, btScalar uppLim, btScalar vel, btScalar timeFact);
|
btScalar getMotorFactor(btScalar pos, btScalar lowLim, btScalar uppLim, btScalar vel, btScalar timeFact);
|
||||||
|
|
||||||
static btRigidBody& getFixedBody()
|
static btRigidBody& getFixedBody();
|
||||||
{
|
|
||||||
static btRigidBody s_fixed(0, 0,0);
|
|
||||||
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
|
||||||
return s_fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@@ -27,12 +27,8 @@ class btActionInterface
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
static btRigidBody& getFixedBody()
|
static btRigidBody& getFixedBody();
|
||||||
{
|
|
||||||
static btRigidBody s_fixed(0, 0,0);
|
|
||||||
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
|
||||||
return s_fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,12 @@
|
|||||||
#include "LinearMath/btIDebugDraw.h"
|
#include "LinearMath/btIDebugDraw.h"
|
||||||
#include "BulletDynamics/ConstraintSolver/btContactConstraint.h"
|
#include "BulletDynamics/ConstraintSolver/btContactConstraint.h"
|
||||||
|
|
||||||
|
btRigidBody& btActionInterface::getFixedBody()
|
||||||
|
{
|
||||||
|
static btRigidBody s_fixed(0, 0,0);
|
||||||
|
s_fixed.setMassProps(btScalar(0.),btVector3(btScalar(0.),btScalar(0.),btScalar(0.)));
|
||||||
|
return s_fixed;
|
||||||
|
}
|
||||||
|
|
||||||
btRaycastVehicle::btRaycastVehicle(const btVehicleTuning& tuning,btRigidBody* chassis, btVehicleRaycaster* raycaster )
|
btRaycastVehicle::btRaycastVehicle(const btVehicleTuning& tuning,btRigidBody* chassis, btVehicleRaycaster* raycaster )
|
||||||
:m_vehicleRaycaster(raycaster),
|
:m_vehicleRaycaster(raycaster),
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ public:
|
|||||||
btTransformUtil::calculateVelocityQuaternion(m_posB,toPosB,m_ornB,toOrnB,btScalar(1.),linVelB,angVelB);
|
btTransformUtil::calculateVelocityQuaternion(m_posB,toPosB,m_ornB,toOrnB,btScalar(1.),linVelB,angVelB);
|
||||||
btScalar maxAngularProjectedVelocity = angVelA.length() * m_boundingRadiusA + angVelB.length() * m_boundingRadiusB;
|
btScalar maxAngularProjectedVelocity = angVelA.length() * m_boundingRadiusA + angVelB.length() * m_boundingRadiusB;
|
||||||
btVector3 relLinVel = (linVelB-linVelA);
|
btVector3 relLinVel = (linVelB-linVelA);
|
||||||
btScalar relLinVelocLength = (linVelB-linVelA).dot(m_separatingNormal);
|
btScalar relLinVelocLength = relLinVel.dot(m_separatingNormal);
|
||||||
if (relLinVelocLength<0.f)
|
if (relLinVelocLength<0.f)
|
||||||
{
|
{
|
||||||
relLinVelocLength = 0.f;
|
relLinVelocLength = 0.f;
|
||||||
|
|||||||
Reference in New Issue
Block a user