Fix llTargetOmega non-physical gain.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>inv-download
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue