diff options
author | Brian McBee | 2007-11-20 05:40:50 +0000 |
---|---|---|
committer | Brian McBee | 2007-11-20 05:40:50 +0000 |
commit | c8293d908dc04c74c2b9f82e0029a1c8f80a84af (patch) | |
tree | 8cd932a32ee1e94a92dff260302f03a88b27e636 /OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | |
parent | fixed potential reference invalidation and array out of bounds exception in b... (diff) | |
download | opensim-SC-c8293d908dc04c74c2b9f82e0029a1c8f80a84af.zip opensim-SC-c8293d908dc04c74c2b9f82e0029a1c8f80a84af.tar.gz opensim-SC-c8293d908dc04c74c2b9f82e0029a1c8f80a84af.tar.bz2 opensim-SC-c8293d908dc04c74c2b9f82e0029a1c8f80a84af.tar.xz |
New improved POS! With slippery avatars and extra calculations.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs index bdd23ab..6b8db5f 100644 --- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs +++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | |||
@@ -232,6 +232,16 @@ namespace OpenSim.Region.Physics.POSPlugin | |||
232 | character.Position.X = oldposX; | 232 | character.Position.X = oldposX; |
233 | character.Position.Y = oldposY; | 233 | character.Position.Y = oldposY; |
234 | character.Position.Z = oldposZ; | 234 | character.Position.Z = oldposZ; |
235 | character.Position.X = character.Position.X + (character._target_velocity.X * timeStep); | ||
236 | if (check_all_prims(character)) | ||
237 | { | ||
238 | character.Position.X = oldposX; | ||
239 | } | ||
240 | character.Position.Y = character.Position.Y + (character._target_velocity.Y * timeStep); | ||
241 | if (check_all_prims(character)) | ||
242 | { | ||
243 | character.Position.Y = oldposY; | ||
244 | } | ||
235 | } | 245 | } |
236 | else | 246 | else |
237 | { | 247 | { |