Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorChris Want <cwant@ualberta.ca>2003-08-23 23:09:52 +0400
committerChris Want <cwant@ualberta.ca>2003-08-23 23:09:52 +0400
commitb92e99d0a80871b97d9e49985e200bd76467e65b (patch)
tree29af6244089be5bf4ff320680c989a5ef5b54364 /source
parent25268cbf3b3dd0c0fd199fa640c1b20f1f52f6ab (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!
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/Physics/BlOde/OdePhysicsController.cpp6
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)
{
}
-
-
-