mantis 6702: fix collisions lldetectedlinknumber also on Yengine

0.9.1.0-post-fixes
UbitUmarov 2019-01-30 12:27:03 +00:00
parent dd43e613f0
commit 73e64c6597
3 changed files with 10 additions and 12 deletions

View File

@ -2670,7 +2670,10 @@ namespace OpenSim.Region.Framework.Scenes
detobj.velVector = obj.Velocity;
detobj.colliderType = 0;
detobj.groupUUID = obj.GroupID;
detobj.linkNumber = LinkNum;
if (VolumeDetectActive)
detobj.linkNumber = 0;
else
detobj.linkNumber = LinkNum;
return detobj;
}
@ -2689,7 +2692,10 @@ namespace OpenSim.Region.Framework.Scenes
else if(detobj.velVector != Vector3.Zero)
detobj.colliderType |= 0x2; //active
detobj.groupUUID = av.ControllingClient.ActiveGroupId;
detobj.linkNumber = LinkNum;
if (VolumeDetectActive)
detobj.linkNumber = 0;
else
detobj.linkNumber = LinkNum;
return detobj;
}
@ -2705,8 +2711,7 @@ namespace OpenSim.Region.Framework.Scenes
detobj.velVector = Vector3.Zero;
detobj.colliderType = 0;
detobj.groupUUID = UUID.Zero;
detobj.linkNumber = LinkNum; // pass my link number not sure needed.. but no harm
detobj.linkNumber = LinkNum;
return detobj;
}

View File

@ -245,7 +245,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
DetectParams d = new DetectParams();
d.Key =detobj.keyUUID;
d.Populate(myScriptEngine.World, detobj);
d.LinkNum = detobj.linkNumber; // do it here since currently linknum is collided part
det.Add(d);
}

View File

@ -231,13 +231,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
det[i++] = d;
d.Key = detobj.keyUUID;
d.Populate(this.World);
/* not done by XEngine...
d.Position = detobj.posVector;
d.Rotation = detobj.rotQuat;
d.Velocity = detobj.velVector;
... */
d.Populate(World, detobj);
}
this.PostObjectEvent(localID, new EventParams(