Interface IAngularSweepTestable
Supports sweep tests in which the query shape translates and rotates while this object stays fixed.
public interface IAngularSweepTestable : ISweepTestable
- Inherited Members
Methods
Sweep<T>(in T, in JQuaternion, in JVector, in JVector, in JVector, float, float, out JVector, out JVector, out JVector, out float)
Finds the first impact within the specified time interval.
bool Sweep<T>(in T support, in JQuaternion orientation, in JVector position, in JVector velocity, in JVector angularVelocity, float extent, float maximumTime, out JVector pointA, out JVector pointB, out JVector normal, out float lambda) where T : ISupportMappable
Parameters
supportTThe query shape.
orientationJQuaternionThe query shape's initial world-space orientation.
positionJVectorThe query shape's initial world-space position and rotation origin.
velocityJVectorThe query shape's linear velocity in world space.
angularVelocityJVectorThe query shape's angular velocity in world space, in radians per second.
extentfloatA radius enclosing the query shape about its rotation origin, including any local offset.
maximumTimefloatThe last time to search, in seconds.
pointAJVectorContact point on the query shape at its initial pose.
pointBJVectorContact point on this object in world space.
normalJVectorWorld-space normal from the query shape toward this object at impact; zero for initial overlap.
lambdafloatTime of impact in seconds; zero for initial overlap.
Returns
- bool
True if an impact is found; false if the shapes miss or the search fails.
Type Parameters
TThe query support-map type.