New improved POS! With slippery avatars and extra calculations.

afrisby
Brian McBee 2007-11-20 05:40:50 +00:00
parent 83ed435d01
commit c8293d908d
1 changed files with 10 additions and 0 deletions

View File

@ -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
{