forked from bartvdbraak/blender
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!
This commit is contained in:
parent
25268cbf3b
commit
b92e99d0a8
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user