Correct Sensor axis for unattached daughter prims.

This commit is contained in:
Kitto Flora
2010-12-12 23:26:58 +00:00
parent d3b081744e
commit 9f9af315ec

View File

@@ -301,7 +301,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
float dy;
float dz;
Quaternion q = SensePoint.RotationOffset;
// Quaternion q = SensePoint.RotationOffset;
Quaternion q = SensePoint.GetWorldRotation(); // non-attached prim Sensor *always* uses World rotation!
if (SensePoint.ParentGroup.RootPart.IsAttachment)
{
// In attachments, the sensor cone always orients with the