Skip to content

@modoki/engine / index / vecEcsToPhys

Function: vecEcsToPhys() ​

vecEcsToPhys(x, y, ppm): Vec2

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

Parameters ​

x ​

number

y ​

number

ppm ​

number

Returns ​

Vec2

Built with Modoki.