mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
add vector variant of osSlerp; update script syntax
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user