API reference

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

C

classPhysicsBinding

@codexo/exojs-physics / physics / stable

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.

2
props
1
methods
0
events
Import
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.

Constructors 1
new(body: PhysicsBody, node: SceneNode): PhysicsBinding
Methods 1
sync(): void
Properties 2
body: PhysicsBody
node: SceneNode
Source