Manual:

Tutorials:

API:

ChipmunkCollisionManager.ChipmunkPreSolve_type1_type2()

function ChipmunkPreSolve_type1_type2(arbiter : ChipmunkArbiter) : bool

Parameters:


arbiterThe arbiter for this collision.

Returns:

bool - A boolean specifying whether the collision should be ignored for the current time step or not.

Description

Called each fixed time step for two shapes with the given @ChipmunkShape.collisionType@s before the solver runs.

The primary purpose of this function is to allow you to update collision values on the @ChipmunkArbiter@. You can also conditionally reject the collision for the current fixed time step by returning false