solid3D
Canonical ID: scene3d.solid. Nederlands: stevig3D.
Controls whether camera movement collides with an existing object. New objects are solid by default. Setting false does not hide the object and does not exclude it from touching3D or aim3D. It adds no rigid-body simulation, gravity, or automatic collision response between objects.
See 3D words and camera rules.
Signature
solid3D(name, value)
Arguments
| Parameter | Type | Requirement |
|---|---|---|
name |
Text | Case-sensitive, nonblank object name; at most 64 UTF-8 bytes. |
value |
Boolean | Whether camera movement treats the object as solid. |
Return value
None.
Example
# language: en
clear3D("black")
box3D("ghost", 1, 1, 1)
solid3D("ghost", false)
camera3D(0, 0, 3)
say aim3D(10)
draw3D()
Prints ghost: aiming still sees nonsolid objects.
Notes and common mistakes
Use the function name for your source language. Its canonical ID is a shared documentation label; you do not type that ID as a call. Giving your own variable or function the same name can hide the built-in. Supply the documented arguments and value types. Pliro reports mismatches when checking can detect them, or when the call runs.
A host is the app or environment running your program. To see a drawing, it needs a renderer, the part that draws on screen. The command-line command pliro run shows text but does not draw these graphics. The host support table explains which effects work in the IDE, browser, native app, and phone preview. A native build reports an unsupported capability instead of leaving it out.
In 3D, +Y points up. Yaw is the left-or-right angle; at zero the camera faces -Z. The world holds at most 256 objects. Changes appear when you call draw3D. An invalid call leaves the world unchanged. Editing requires an existing object name; creating objects and removing an absent name are exceptions. Use the portable color names or hex codes; transparent colors are unavailable here. Version 1 of the phone preview’s communication format does not carry 3D scenes. See the 3D guide for the coordinate rules.
Related entries
clear3D · box3D · sphere3D · cylinder3D · position3D · Programming guides · Host support · Calls and arguments
