API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceObjectColliderOptions
@codexo/exojs-tilemap-physics / tilemap-physics / stable
Options for buildObjectLayerColliders.
7
props
0
methods
0
events
Import
import { ObjectColliderOptions } from '@codexo/exojs-tilemap-physics'Options for buildObjectLayerColliders.
Properties7
Drop an object before a body is built for it. Return true to keep it.
density?: numberDensity; irrelevant while the bodies are static. Default 1.
Category/mask/group filter; partials merge over the physics defaults.
friction?: numberCoulomb friction. Default 0.6.
isSensor?: booleanGenerate overlap events instead of contact response. Default false.
Per-object override of any of the above.
restitution?: numberRestitution / bounciness in [0, 1]. Default 0.
Source