Table of Contents

Interface IAngularSweepTestable

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

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

support T

The query shape.

orientation JQuaternion

The query shape's initial world-space orientation.

position JVector

The query shape's initial world-space position and rotation origin.

velocity JVector

The query shape's linear velocity in world space.

angularVelocity JVector

The query shape's angular velocity in world space, in radians per second.

extent float

A radius enclosing the query shape about its rotation origin, including any local offset.

maximumTime float

The last time to search, in seconds.

pointA JVector

Contact point on the query shape at its initial pose.

pointB JVector

Contact point on this object in world space.

normal JVector

World-space normal from the query shape toward this object at impact; zero for initial overlap.

lambda float

Time 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

T

The query support-map type.