mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
more variations on same thing
This commit is contained in:
@@ -498,18 +498,20 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
{
|
||||
Falling = false;
|
||||
currentControlState = motionControlStates.landing;
|
||||
|
||||
// TODO: SOFT_LAND support
|
||||
float fallVsq = m_lastFallVelocity * m_lastFallVelocity;
|
||||
if (fallVsq > 300f) // aprox 20*h
|
||||
|
||||
if ((controlFlags & (AgentManager.ControlFlags.AGENT_CONTROL_FINISH_ANIM)) == 0)
|
||||
{
|
||||
m_animTickLand = Environment.TickCount + 3000;
|
||||
return "STANDUP";
|
||||
}
|
||||
if (fallVsq > 160f)
|
||||
{
|
||||
m_animTickLand = Environment.TickCount + 1500;
|
||||
return "SOFT_LAND";
|
||||
float fallVsq = m_lastFallVelocity * m_lastFallVelocity;
|
||||
if (fallVsq > 300f) // aprox 20*h
|
||||
{
|
||||
m_animTickLand = Environment.TickCount + 3000;
|
||||
return "STANDUP";
|
||||
}
|
||||
if (fallVsq > 160f)
|
||||
{
|
||||
m_animTickLand = Environment.TickCount + 1500;
|
||||
return "SOFT_LAND";
|
||||
}
|
||||
}
|
||||
m_animTickLand = Environment.TickCount + 600;
|
||||
return "LAND";
|
||||
|
||||
Reference in New Issue
Block a user