mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
Keep IsColliding updated for the recent changes in ScenePresence so that walk/stand animations will get used instead of just falling
This commit is contained in:
@@ -164,16 +164,19 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
|
||||
{
|
||||
actor.Position.Z = height;
|
||||
actor.Velocity.Z = 0;
|
||||
actor.IsColliding = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
actor.Position.Z += actor.Velocity.Z*timeStep;
|
||||
actor.IsColliding = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
actor.Position.Z = height;
|
||||
actor.Velocity.Z = 0;
|
||||
actor.IsColliding = true;
|
||||
}
|
||||
}
|
||||
return fps;
|
||||
|
||||
Reference in New Issue
Block a user