cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Meta XR SDKs

YiyinEllenGu
Honored Guest

The OVRPhysicsRaycaster file provided in the Meta XR SDKs have a bug by the line 153.
for (int b = 0, bmax = hits.Length; b < bmax; ++b)
{
var result = new RaycastResult
{
gameObject = hits[b].collider.gameObject,
module = this,
distance = hits[b].distance,
index = resultAppendList.Count,
worldPosition = hits[0].point,
worldNormal = hits[0].normal,
};
resultAppendList.Add(result);
}
Those two [0] should be [b]. 

0 REPLIES 0