createRawMovable3D

View sourcecreateRawMovable3D(): [Velocity3D, Rotation3D, Acceleration3D, Torque3D]

Creates an ordered 3D motion-only component bundle.

The returned tuple contains Velocity3D, Rotation3D, Acceleration3D, and Torque3D in insertion order. Every component starts at zero. Use createMovable3D when the entity also needs the standard 3D transform components.

Examples

import { World } from '@wimaengine/ecs'
import { createRawMovable3D } from '@wimaengine/movable'

const world = new World()
world.spawn(createRawMovable3D())

Returns

Ordered motion components.