The collider hit by the shape-cast.
The outward normal on the first shape at the time of impact, expressed in the local-space of the first shape.
The outward normal on the second shape at the time of impact, expressed in the local-space of the second shape.
The time of impact of the two shapes.
The contact point on the first shape at the time of impact, expressed in the local-space of the first shape.
The contact point on the second shape at the time of impact, expressed in the local-space of the second shape.
Static fromOptional target: ColliderShapeCastHit
The result of a shape-cast that hit a collider.
The frames of the witness points and normals depend on the query that returned it:
World.castShape(andBroadPhase.castShape):witness1andnormal1lie on the hitcolliderand are expressed in world-space;witness2andnormal2lie on the cast shape and are expressed in its local-space (relative to its pose, so they do not depend on its translation along the cast).Collider.castCollider:witness1andnormal1lie on the collider the cast is called on and are expressed in its local-space;witness2andnormal2lie on the hitcollider(thecollider2argument) and are expressed in its local-space.