Interface ISweepTestable
Represents an entity that can be sweep-tested against a moving support-mapped query shape.
public interface ISweepTestable
Methods
Sweep<T>(in T, in JQuaternion, in JVector, in JVector, out JVector, out JVector, out JVector, out float)
Performs a sweep test against this object.
bool Sweep<T>(in T support, in JQuaternion orientation, in JVector position, in JVector sweep, out JVector pointA, out JVector pointB, out JVector normal, out float lambda) where T : ISupportMappable
Parameters
supportTThe query shape.
orientationJQuaternionThe query shape orientation in world space.
positionJVectorThe query shape position in world space.
sweepJVectorThe query shape translation in world space.
pointAJVectorCollision point on the query shape in world space at the sweep origin. Undefined when the shapes already overlap.
pointBJVectorCollision point on this object in world space at the sweep origin. Undefined when the shapes already overlap.
normalJVectorCollision normal in world space, or Zero if the shapes already overlap. Use the return value to determine whether a hit occurred; do not rely on this being non-zero.
lambdafloatThe time of impact expressed in units of
sweep. Zero if the shapes already overlap.
Returns
- bool
trueif the query shape hits or already overlaps this object; otherwise,false.
Type Parameters
TThe query support-map type.