API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeContactModifier

@codexo/exojs-physics / physics / stable

Called once per solid contact per fixed step, after contact generation and before the solver runs, to adjust that contact for this step - the hook one-way platforms, conditional friction and per-pair material overrides are built on. A world has at most one modifier. It runs before islands are built, so disabling a contact also keeps the two bodies from sleeping as one.

0
props
0
methods
0
events
Import
import { ContactModifier } from '@codexo/exojs-physics'

Called once per solid contact per fixed step, after contact generation and before the solver runs, to adjust that contact for this step - the hook one-way platforms, conditional friction and per-pair material overrides are built on.

A world has at most one modifier. It runs before islands are built, so disabling a contact also keeps the two bodies from sleeping as one.

Definition1
Source