add vector variant of osSlerp; update script syntax

This commit is contained in:
UbitUmarov
2021-01-06 16:32:51 +00:00
parent be649ee7e5
commit a3b26255dd
6 changed files with 90 additions and 41 deletions

View File

@@ -5647,6 +5647,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return LSL_Rotation.Slerp(a, b, amount);
}
public LSL_Vector osSlerp(LSL_Vector a, LSL_Vector b, LSL_Float amount)
{
if (amount < 0)
amount = 0;
else if (amount > 1.0)
amount = 1.0;
return LSL_Vector.Slerp(a, b, amount);
}
public void osResetAllScripts(LSL_Integer linkset)
{
UUID me = m_item.ItemID;