aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Physics/OdePlugin/OdePlugin.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Physics/OdePlugin/OdePlugin.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim.Physics/OdePlugin/OdePlugin.cs b/OpenSim.Physics/OdePlugin/OdePlugin.cs
index 47c8c0d..352084c 100644
--- a/OpenSim.Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim.Physics/OdePlugin/OdePlugin.cs
@@ -256,15 +256,16 @@ namespace OpenSim.Physics.OdePlugin
256 gravityAccel+= -9.8f; 256 gravityAccel+= -9.8f;
257 vec.Z = (gravityAccel + this._velocity.Z) * timeStep; 257 vec.Z = (gravityAccel + this._velocity.Z) * timeStep;
258 } 258 }
259 //int res = this._character.Move(vec); 259 d.BodySetLinearVel(this.BoundingCapsule, vec.X, vec.Y, vec.Z);
260 //if(res == 1)
261 //{
262 // gravityAccel = 0;
263 //}
264 } 260 }
265 261
266 public void UpdatePosition() 262 public void UpdatePosition()
267 { 263 {
264 d.Vector3 vec = d.BodyGetPosition(BoundingCapsule);
265 this._position.X = vec.X;
266 this._position.Y = vec.Y;
267 this._position.Z = vec.Z;
268
268 } 269 }
269 } 270 }
270 271