Shape Cast Pair Input
data class ShapeCastPairInput(val proxyA: ShapeProxy, val proxyB: ShapeProxy, val transformA: Transform = Transform.Identity, val transformB: Transform = Transform.Identity, val translationB: Vec2, val maxFraction: Float = 1.0f, val canEncroach: Boolean = false)
Input for a shape-to-shape cast.
Parameters
proxy A
The proxy for shape A
proxy B
The proxy for shape B
transform A
The world transform for shape A
transform B
The world transform for shape B
translation B
The translation of shape B
max Fraction
The fraction of the translation to consider, typically 1
can Encroach
Allows shapes with a radius to move slightly closer if already touching
Constructors
Link copied to clipboard
constructor(proxyA: ShapeProxy, proxyB: ShapeProxy, transformA: Transform = Transform.Identity, transformB: Transform = Transform.Identity, translationB: Vec2, maxFraction: Float = 1.0f, canEncroach: Boolean = false)