mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
lltargetomega efective spinrate now multiplied by gain ( need check )
This commit is contained in:
@@ -3804,6 +3804,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
|
||||
{
|
||||
spinrate *= gain;
|
||||
part.UpdateAngularVelocity(new Vector3((float)(axis.x * spinrate), (float)(axis.y * spinrate), (float)(axis.z * spinrate)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user