Implements llSetForce() and llGetForce(). These are experimental and the units may not match the Linden implementation.

This commit is contained in:
Dahlia Trimble
2008-07-24 07:45:58 +00:00
parent d58346e798
commit f74a9bcdc7
11 changed files with 92 additions and 10 deletions

View File

@@ -1374,6 +1374,14 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public PhysicsVector GetForce()
{
if (PhysActor != null)
return PhysActor.Force;
else
return new PhysicsVector();
}
[SecurityPermission(SecurityAction.LinkDemand,
Flags = SecurityPermissionFlag.SerializationFormatter)]
public virtual void GetObjectData(
@@ -2296,6 +2304,14 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void SetForce(PhysicsVector force)
{
if (PhysActor != null)
{
PhysActor.Force = force;
}
}
public void SetGroup(LLUUID groupID, IClientAPI client)
{
_groupID = groupID;