castShapeNonLinear

abstract fun castShapeNonLinear(shape: Shape, shapePos: DIso3, shapeLocalCenter: DVec3, shapeLinVel: DVec3, shapeAngVel: DVec3, timeStart: Double, timeEnd: Double, settings: PhysicsQuery.ShapeCastSettings, filter: PhysicsQuery.Filter): PhysicsQuery.ShapeCast?

Gets the first collider whose shape intersects a swept version of the provided shape. The swept shape starts at shapePos and travels:

The sweep starts at timeStart and ends at timeEnd.

This is more expensive than castShape as it also takes rotational velocity into account.

Parameters

shape

The shape to cast.

shapePos

The position the shape starts at.

shapeLocalCenter

The local-space point at which the rotational part of motion is applied.

shapeLinVel

The translational velocity of this shape motion.

shapeAngVel

The rotational velocity of this shape motion.

timeStart

The starting time of the shape cast motion.

timeEnd

The ending time of the shape cast motion.

settings

Settings on how the shape cast will behave.

filter

The filter for determining which colliders are tested against.