mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
mantis 8634: add osSetSitActiveRange(float range) , osSetStandTarget(vector feetAproxPosition) and respective get functions. range <0 disables sits on the prim, = 0 uses region default,feetAproxPosition is in prim local frame. <0,0,0> disables it. Still no persistance. feedback required!
This commit is contained in:
@@ -5674,5 +5674,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return 3;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void osSetSitActiveRange(LSL_Float v)
|
||||
{
|
||||
if (v > 128f)
|
||||
v = 128f;
|
||||
m_host.SitActiveRange = (float)v;
|
||||
}
|
||||
|
||||
public LSL_Float osGetSitActiveRange()
|
||||
{
|
||||
return m_host.SitActiveRange;
|
||||
}
|
||||
|
||||
public void osSetStandTarget(LSL_Vector v)
|
||||
{
|
||||
// todo add limits ?
|
||||
m_host.StandOffset = v;
|
||||
}
|
||||
|
||||
public LSL_Vector osGetStandTarget()
|
||||
{
|
||||
return m_host.StandOffset;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user