diff options
author | Chris Want <cwant@ualberta.ca> | 2003-08-23 23:09:52 +0400 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2003-08-23 23:09:52 +0400 |
commit | b92e99d0a80871b97d9e49985e200bd76467e65b (patch) | |
tree | 29af6244089be5bf4ff320680c989a5ef5b54364 | |
parent | 25268cbf3b3dd0c0fd199fa640c1b20f1f52f6ab (diff) |
In ODE, a dVector3 is really a 4D array ... the 3D initialization
used in this file caused the MipsPro 7.4 compiler to choke
... please test on all platforms!
-rw-r--r-- | source/gameengine/Physics/BlOde/OdePhysicsController.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/gameengine/Physics/BlOde/OdePhysicsController.cpp b/source/gameengine/Physics/BlOde/OdePhysicsController.cpp index 0686893f38c..4dee694bcd7 100644 --- a/source/gameengine/Physics/BlOde/OdePhysicsController.cpp +++ b/source/gameengine/Physics/BlOde/OdePhysicsController.cpp @@ -378,7 +378,6 @@ bool ODEPhysicsController::SynchronizeMotionStates(float time) - // kinematic methods void ODEPhysicsController::RelativeTranslate(float dlocX,float dlocY,float dlocZ,bool local) { @@ -474,7 +473,7 @@ void ODEPhysicsController::SetLinearVelocity(float lin_velX,float lin_velY,float { if (m_OdeDyna) { - dVector3 vel = {lin_velX,lin_velY,lin_velZ}; + dVector3 vel = {lin_velX,lin_velY,lin_velZ, 1.0}; if (local) { dMatrix3 worldmat; @@ -610,6 +609,3 @@ void ODEPhysicsController::WriteMotionStateToDynamics(bool nondynaonly) { } - - - |