Correct Sensor axis for unattached daughter prims.

avinationmerge
Kitto Flora 2010-12-12 23:26:58 +00:00
parent d3b081744e
commit 9f9af315ec
1 changed files with 2 additions and 1 deletions

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