← Back to Nodes

OmniLight3D

⚠️ Experimental - Pre-Release

Inheritance Hierarchy

Inherits:
Inheritance Chain:
Node → Node3D → OmniLight3D

OmniLight3D is a 3D omni-directional (point) light node. Omni lights emit light in all directions from a point, like a light bulb. They extend Node3D and provide point lighting for 3D scenes.

Fields

OmniLight3D has no additional fields beyond those inherited from Node3D.

Inherited Fields: OmniLight3D also has all fields from Node3D: transform, visible

Usage Example

@script LampLight extends OmniLight3D    fn init() {        // Position the light at a lamp location        self.transform.position.x = 5.0        self.transform.position.y = 3.0        self.transform.position.z = 2.0    }

Related