API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classPhysicsBinding
A link between a PhysicsBody and a SceneNode. After each PhysicsWorld.step, the body's world position **and rotation** are written onto the node (the body's angle is radians; the node's rotation is degrees). The node must be world-space-rooted; runtime scale is ignored and non-zero skew is rejected at bind time.
import { PhysicsBinding } from '@codexo/exojs-physics' A link between a PhysicsBody and a SceneNode. After each PhysicsWorld.step, the body's world position **and rotation** are written onto the node (the body's angle is radians; the node's rotation is degrees). The node must be world-space-rooted; runtime scale is ignored and non-zero skew is rejected at bind time.
new(body: PhysicsBody, node: SceneNode): PhysicsBinding sync(): void body: PhysicsBody node: SceneNode