WorldToLocal applies transformation on the passed vector if the camera has transformation applied to it, however it does not apply it to the game.world.pos which is added to get the file result. This results an incorrect world to local translation. This change copies the world pos vector to a local variable and applies transformation to it, before adding it to the vector.
Description of change
WorldToLocal applies transformation on the passed vector if the camera has transformation applied to it, however it does not apply it to the game.world.pos which is added to get the file result. This results an incorrect world to local translation. This change copies the world pos vector to a local variable and applies transformation to it, before adding it to the vector.
Merge Checklist
npm run build
)npm run lint
)npm run test
)