Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
commit
9b9332782d
|
@ -12625,9 +12625,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
results.Add(r);
|
results.Add(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
// bug: will not detect phantom unless they are physical
|
// TODO: Replace this with a better solution. ObjectIntersection can only
|
||||||
// don't use ObjectIntersection because its also bad
|
// detect nonphysical phantoms. They are detected by virtue of being
|
||||||
|
// nonphysical (e.g. no PhysActor) so will not conflict with detecting
|
||||||
|
// physicsl phantoms as done by the physics scene
|
||||||
|
// We don't want anything else but phantoms here.
|
||||||
|
if (detectPhantom)
|
||||||
|
{
|
||||||
|
ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, false, false, true);
|
||||||
|
foreach (ContactResult r in objectHits)
|
||||||
|
results.Add(r);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue