From 60385e7525c8021a13ad6194dc15761e64ccc502 Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 27 Mar 2007 00:56:08 +0000 Subject: [PATCH] Movement? --- OpenSim.Physics/OdePlugin/OdePlugin.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/OpenSim.Physics/OdePlugin/OdePlugin.cs b/OpenSim.Physics/OdePlugin/OdePlugin.cs index 47c8c0dae8..352084c5bd 100644 --- a/OpenSim.Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim.Physics/OdePlugin/OdePlugin.cs @@ -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; + } }