The first point of the segment.
The second point of the segment.
Readonly typeOptional target: RayIntersectionComputes the time of impact between two moving shapes.
In the returned hit, witness1 and normal1 lie on this shape and are expressed in its
local-space (relative to shapePos1 and shapeRot1), while witness2 and normal2 lie on
shape2 and are expressed in its local-space (relative to shapePos2 and shapeRot2).
The initial position of this shape.
The rotation of this shape.
The velocity of this shape.
The second moving shape.
The initial position of the second shape.
The rotation of the second shape.
The velocity of the second shape.
− If the shape moves closer to this distance from a collider, a hit will be returned.
The maximum time when the impact can happen.
If set to false, the linear shape-cast won’t immediately stop if
the shape is penetrating another shape at its starting point and its trajectory is such
that it’s on a path to exit that penetration state.
Optional target: ShapeCastHitThe object to be populated. If provided, the function returns this object instead of creating a new one.
If the two moving shapes collider at some point along their trajectories, this returns the
time at which the two shape collider as well as the contact information during the impact. Returns
null if the two shapes never collide along their paths.
Computes one pair of contact points between two shapes.
The initial position of this sahpe.
The rotation of this shape.
The second shape.
The initial position of the second shape.
The rotation of the second shape.
The prediction value, if the shapes are separated by a distance greater than this value, test will fail.
Optional target: ShapeContactnull if the shapes are separated by a distance greater than prediction, otherwise contact details. The result is given in world-space.
Optional target: PointProjectionStatic fromStatic from
A shape that is a segment.