refactor: Use LSL_Vector(Vector3) constructor in llGetTorque()

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 22:01:24 +00:00
parent 608a569bd5
commit 681b07f668
1 changed files with 2 additions and 2 deletions

View File

@ -2301,8 +2301,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public LSL_Vector llGetTorque() public LSL_Vector llGetTorque()
{ {
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
Vector3 torque = m_host.ParentGroup.GetTorque();
return new LSL_Vector(torque.X,torque.Y,torque.Z); return new LSL_Vector(m_host.ParentGroup.GetTorque());
} }
public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local) public void llSetForceAndTorque(LSL_Vector force, LSL_Vector torque, int local)