API reference

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

T

typeBodyType

@codexo/exojs-physics / physics / stable

Simulation role of a PhysicsBody. - `dynamic` - fully simulated (finite mass); moved by the solver once dynamics ship, and by `setTransform` meanwhile. - `static` - never moves; infinite mass. Ground, walls, level geometry. - `kinematic` - moved only by `setTransform` (game-driven); infinite mass, unaffected by contacts. Platforms, doors.

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

Simulation role of a PhysicsBody.

- `dynamic` - fully simulated (finite mass); moved by the solver once dynamics ship, and by `setTransform` meanwhile. - `static` - never moves; infinite mass. Ground, walls, level geometry. - `kinematic` - moved only by `setTransform` (game-driven); infinite mass, unaffected by contacts. Platforms, doors.

Definition1
"dynamic" | "kinematic" | "static"
Source