diff options
author | gareth | 2007-03-27 00:56:08 +0000 |
---|---|---|
committer | gareth | 2007-03-27 00:56:08 +0000 |
commit | 60385e7525c8021a13ad6194dc15761e64ccc502 (patch) | |
tree | b2472f48b66cc01088f376ee512467363817821b /OpenSim.Physics | |
parent | ZOMG! CAPSULES AS BOUNDING VOLUMES! (diff) | |
download | opensim-SC_OLD-60385e7525c8021a13ad6194dc15761e64ccc502.zip opensim-SC_OLD-60385e7525c8021a13ad6194dc15761e64ccc502.tar.gz opensim-SC_OLD-60385e7525c8021a13ad6194dc15761e64ccc502.tar.bz2 opensim-SC_OLD-60385e7525c8021a13ad6194dc15761e64ccc502.tar.xz |
Movement?
Diffstat (limited to '')
-rw-r--r-- | OpenSim.Physics/OdePlugin/OdePlugin.cs | 11 |
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 | ||