mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Fix llTargetOmega non-physical gain.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
This commit is contained in:
committed by
Michael Cerquoni
parent
beba2ce781
commit
bdb91d0e70
@@ -3681,6 +3681,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
|
||||
{
|
||||
PhysicsActor pa = part.PhysActor;
|
||||
if ( ( pa == null || !pa.IsPhysical ) && gain == 0.0d )
|
||||
spinrate = 0.0d;
|
||||
part.UpdateAngularVelocity(axis * spinrate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user