Skip to content

@modoki/engine / index / vecPhysToEcs3D

Function: vecPhysToEcs3D() ​

vecPhysToEcs3D(x, y, z, upm): Vec3

Rapier-meters vector → ECS world-space (position or velocity).

Parameters ​

x ​

number

y ​

number

z ​

number

upm ​

number

Returns ​

Vec3

Built with Modoki.