set attribute
Problem it solves
You want to create tall castle walls or zoom the camera in when the player uses binoculars.
What this block does
Sets global renderer settings including view vectors, field of view (FOV), and wall vertical scale.
The block
Block ID: rcRender_setAttribute
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| attr | attribute | The renderer attribute to modify (dirX, dirY, fov, or wallZScale). | |
| value | number | The new numeric value to set. |
Returns
void — Nothing.
Example
Render.setAttribute(Render.attribute.wallZScale, 2)
Add the extension
Add github:The-Code-Zone/Raycasting-pxt-extension to your project, or open: Import Raycasting-pxt-extension.