Movement?

tourmaline
gareth 2007-03-27 00:56:08 +00:00
parent 99c837f067
commit 60385e7525
1 changed files with 6 additions and 5 deletions

View File

@ -256,15 +256,16 @@ namespace OpenSim.Physics.OdePlugin
gravityAccel+= -9.8f;
vec.Z = (gravityAccel + this._velocity.Z) * timeStep;
}
//int res = this._character.Move(vec);
//if(res == 1)
//{
// gravityAccel = 0;
//}
d.BodySetLinearVel(this.BoundingCapsule, vec.X, vec.Y, vec.Z);
}
public void UpdatePosition()
{
d.Vector3 vec = d.BodyGetPosition(BoundingCapsule);
this._position.X = vec.X;
this._position.Y = vec.Y;
this._position.Z = vec.Z;
}
}