mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Added some of the finer control points to POS such as
** jumping ** crouching ** landing on prim
This commit is contained in:
@@ -161,8 +161,13 @@ namespace OpenSim.Region.Physics.POSPlugin
|
||||
for (int i = 0; i < _prims.Count; ++i)
|
||||
{
|
||||
if (check_collision(c, _prims[i]))
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -282,10 +287,12 @@ namespace OpenSim.Region.Physics.POSPlugin
|
||||
{
|
||||
character._velocity.Z = 0;
|
||||
character._target_velocity.Z = 0;
|
||||
((PhysicsActor)character).IsColliding = true;
|
||||
character.RequestPhysicsterseUpdate();
|
||||
}
|
||||
else
|
||||
{
|
||||
((PhysicsActor)character).IsColliding = false;
|
||||
character._velocity.Z = (character.Position.Z - oldposZ)/timeStep;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user