Skip to content

@modoki/engine / index / vecPhysToEcs

Function: vecPhysToEcs()

vecPhysToEcs(x, y, ppm): Vec2

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

Parameters

x

number

y

number

ppm

number

Returns

Vec2

Built with Modoki.