From c8293d908dc04c74c2b9f82e0029a1c8f80a84af Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Tue, 20 Nov 2007 05:40:50 +0000 Subject: New improved POS! With slippery avatars and extra calculations. --- OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/Physics') 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 character.Position.X = oldposX; character.Position.Y = oldposY; character.Position.Z = oldposZ; + character.Position.X = character.Position.X + (character._target_velocity.X * timeStep); + if (check_all_prims(character)) + { + character.Position.X = oldposX; + } + character.Position.Y = character.Position.Y + (character._target_velocity.Y * timeStep); + if (check_all_prims(character)) + { + character.Position.Y = oldposY; + } } else { -- cgit v1.1