Keep IsColliding updated for the recent changes in ScenePresence so that walk/stand animations will get used instead of just falling
parent
03901c8c0d
commit
716e1fe0e1
|
@ -164,16 +164,19 @@ namespace OpenSim.Region.Physics.BasicPhysicsPlugin
|
||||||
{
|
{
|
||||||
actor.Position.Z = height;
|
actor.Position.Z = height;
|
||||||
actor.Velocity.Z = 0;
|
actor.Velocity.Z = 0;
|
||||||
|
actor.IsColliding = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
actor.Position.Z += actor.Velocity.Z*timeStep;
|
actor.Position.Z += actor.Velocity.Z*timeStep;
|
||||||
|
actor.IsColliding = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
actor.Position.Z = height;
|
actor.Position.Z = height;
|
||||||
actor.Velocity.Z = 0;
|
actor.Velocity.Z = 0;
|
||||||
|
actor.IsColliding = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return fps;
|
return fps;
|
||||||
|
|
Loading…
Reference in New Issue