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

user_profiles
Justin Clark-Casey (justincc) 2013-03-14 22:01:24 +00:00
parent c3e081a5ca
commit ffbbe29229
1 changed files with 2 additions and 2 deletions

View File

@ -2287,8 +2287,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)