mantis 6702: fix collisions lldetectedlinknumber also on Yengine
parent
dd43e613f0
commit
73e64c6597
|
@ -2670,6 +2670,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
detobj.velVector = obj.Velocity;
|
||||
detobj.colliderType = 0;
|
||||
detobj.groupUUID = obj.GroupID;
|
||||
if (VolumeDetectActive)
|
||||
detobj.linkNumber = 0;
|
||||
else
|
||||
detobj.linkNumber = LinkNum;
|
||||
return detobj;
|
||||
}
|
||||
|
@ -2689,6 +2692,9 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
else if(detobj.velVector != Vector3.Zero)
|
||||
detobj.colliderType |= 0x2; //active
|
||||
detobj.groupUUID = av.ControllingClient.ActiveGroupId;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue