projectToCamera
projectToCamera
Description
Project world position to screen for specified camera
Definition
projectToCamera(entityId cameraId, float aspectRatio, float x, float y, float z)
Arguments
| entityId | cameraId | cameraId |
|---|---|---|
| float | aspectRatio | |
| float | x | |
| float | y | |
| float | z |
Return Values
| float | x | screenspace x coordinate |
|---|---|---|
| float | y | screenspace y coordinate |
| float | z | depth |