CollisionPlane

data class CollisionPlane(val plane: Plane, val pushLimit: Float = Float.MAX_VALUE, val push: Float = 0.0f, val clipVelocity: Boolean = true)

A collision plane used by the character mover solver.

Parameters

plane

The collision plane between the mover and some shape

pushLimit

Setting this to Float.MAX_VALUE makes the plane rigid. Lower values make soft collision. Usually in meters.

push

The push on the mover determined by the solver. Usually in meters.

clipVelocity

Should the velocity be clipped against this plane? Should be false for soft collision.

Constructors

Link copied to clipboard
constructor(plane: Plane, pushLimit: Float = Float.MAX_VALUE, push: Float = 0.0f, clipVelocity: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val push: Float
Link copied to clipboard