ShapeCastPairInput

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

proxyA

The proxy for shape A

proxyB

The proxy for shape B

transformA

The world transform for shape A

transformB

The world transform for shape B

translationB

The translation of shape B

maxFraction

The fraction of the translation to consider, typically 1

canEncroach

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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard