set view angle
Problem it solves
You want to make the player instantly face North (270°) or East (0°) when entering a new room.
What this block does
Sets the 3D camera facing direction to a specific angle in degrees (0 to 360).
The block
Block ID: rcRender_setViewAngleInDegree
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| angle | number | 90 | Direction angle in degrees (0 = East, 90 = South, 180 = West, 270 = North). |
Returns
void — Nothing.
Example
Render.setViewAngleInDegree(180)
Add the extension
Add github:The-Code-Zone/Raycasting-pxt-extension to your project, or open: Import Raycasting-pxt-extension.