mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Implements llSetForce() and llGetForce(). These are experimental and the units may not match the Linden implementation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user