Camera
class in OpalScript
Convert between scene world coordinates and canvas screen pixels.
Methods
| Member | Description |
|---|---|
| Camera.WorldToScreen | Project a world point through the current rendered viewport into canvas CSS pixels, including camera zoom and shake. |
| Camera.ScreenToWorld | Convert canvas CSS pixels through the current rendered viewport into scene world coordinates. |