casual-simulation / casualos

Casual Open Simulation for the Web
https://ab1.bot
MIT License
48 stars 8 forks source link

Add `os.calculateViewportCoordinatesFromPosition()` #426

Closed KallynGowdy closed 3 months ago

KallynGowdy commented 4 months ago

Currently, there is no way to calculate the viewport position that a particular 3D position will get converted for a camera inside a portal. It is possible to do the opposite (os.raycast()), but not the reverse.

This issue tracks work on adding this capability to CasualOS.