Physics.P2.Body#toLocalFrame()

toLocalFrame(out, worldPoint)

Transform a world point to local body frame.

Parameters
Name Type Description
out Float32Array | Array

The vector to store the result in.

worldPoint Float32Array | Array

The input world vector.

Source code: physics/p2/Body.js (Line 624)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.