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.
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.