diff options
author | MW | 2007-03-23 18:54:42 +0000 |
---|---|---|
committer | MW | 2007-03-23 18:54:42 +0000 |
commit | 0e6ded8714007d173c28eefdc510f4c460928345 (patch) | |
tree | 8c3d142f070d965241b10f556c7f6e0561045ff1 | |
parent | Fixed the nant build file (diff) | |
download | opensim-SC_OLD-0e6ded8714007d173c28eefdc510f4c460928345.zip opensim-SC_OLD-0e6ded8714007d173c28eefdc510f4c460928345.tar.gz opensim-SC_OLD-0e6ded8714007d173c28eefdc510f4c460928345.tar.bz2 opensim-SC_OLD-0e6ded8714007d173c28eefdc510f4c460928345.tar.xz |
Added Fly animation
-rw-r--r-- | OpenSim.RegionServer/world/Avatar.cs | 25 | ||||
-rw-r--r-- | bin/PhysX-wrapper.dll | bin | 57344 -> 57344 bytes |
2 files changed, 21 insertions, 4 deletions
diff --git a/OpenSim.RegionServer/world/Avatar.cs b/OpenSim.RegionServer/world/Avatar.cs index 792e2ff..c8a4539 100644 --- a/OpenSim.RegionServer/world/Avatar.cs +++ b/OpenSim.RegionServer/world/Avatar.cs | |||
@@ -274,10 +274,23 @@ namespace OpenSim.world | |||
274 | { | 274 | { |
275 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.AgentUpdateFlags.AGENT_CONTROL_FLY) != 0) | 275 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.AgentUpdateFlags.AGENT_CONTROL_FLY) != 0) |
276 | { | 276 | { |
277 | if (this._physActor.Flying == false) | ||
278 | { | ||
279 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_FLY"]; | ||
280 | this.anim_seq = 1; | ||
281 | this.SendAnimPack(); | ||
282 | } | ||
277 | this._physActor.Flying = true; | 283 | this._physActor.Flying = true; |
284 | |||
278 | } | 285 | } |
279 | else | 286 | else |
280 | { | 287 | { |
288 | if (this._physActor.Flying == true) | ||
289 | { | ||
290 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_STAND"]; | ||
291 | this.anim_seq = 1; | ||
292 | this.SendAnimPack(); | ||
293 | } | ||
281 | this._physActor.Flying = false; | 294 | this._physActor.Flying = false; |
282 | } | 295 | } |
283 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.AgentUpdateFlags.AGENT_CONTROL_AT_POS) != 0) | 296 | if (((uint)pack.AgentData.ControlFlags & (uint)MainAvatar.AgentUpdateFlags.AGENT_CONTROL_AT_POS) != 0) |
@@ -286,7 +299,7 @@ namespace OpenSim.world | |||
286 | if (((movementflag & 1) == 0) || (q != this.bodyRot)) | 299 | if (((movementflag & 1) == 0) || (q != this.bodyRot)) |
287 | { | 300 | { |
288 | 301 | ||
289 | if ((movementflag & 1) == 0) | 302 | if (((movementflag & 1) == 0) && (!this._physActor.Flying)) |
290 | { | 303 | { |
291 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_WALK"]; | 304 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_WALK"]; |
292 | this.anim_seq = 1; | 305 | this.anim_seq = 1; |
@@ -395,10 +408,14 @@ namespace OpenSim.world | |||
395 | this.forcesList.Add(newVelocity); | 408 | this.forcesList.Add(newVelocity); |
396 | movementflag = 0; | 409 | movementflag = 0; |
397 | // We're standing still, so make it show! | 410 | // We're standing still, so make it show! |
398 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_STAND"]; | 411 | if (this._physActor.Flying == false) |
399 | this.anim_seq = 1; | 412 | { |
400 | this.SendAnimPack(); | 413 | this.current_anim = Animations.AnimsLLUUID["ANIM_AGENT_STAND"]; |
414 | this.anim_seq = 1; | ||
415 | this.SendAnimPack(); | ||
416 | } | ||
401 | this.movementflag = 16; | 417 | this.movementflag = 16; |
418 | |||
402 | } | 419 | } |
403 | } | 420 | } |
404 | } | 421 | } |
diff --git a/bin/PhysX-wrapper.dll b/bin/PhysX-wrapper.dll index 594bd89..d7a4002 100644 --- a/bin/PhysX-wrapper.dll +++ b/bin/PhysX-wrapper.dll | |||
Binary files differ | |||