diff options
Diffstat (limited to 'OpenSim')
-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 | { |