![]() |
Lysa
0.0
Lysa 3D Engine
|
A renderable scene that holds a collection of MeshInstance objects submitted to the GPU.
Lua full name: lysa.Scene
Public Member Functions | |
| nil | add_instance (id: integer) |
| Adds a MeshInstance by id to this scene for rendering. More... | |
| nil | update_instance (id: integer) |
| Notifies the renderer that the MeshInstance with the given id has been modified (transform, material, etc.). More... | |
| nil | remove_instance (id: integer) |
| Removes a MeshInstance by id from this scene. More... | |
| RayCastHit|nil | ray_cast (ray: Ray, parent: MeshInstance|nil) |
| Casts a ray through all MeshInstances and returns the closest hit, or nil. The length of direction defines the max distance. More... | |
| RayCastHit[] | ray_cast_all (ray: Ray, parent: MeshInstance|nil) |
| Casts a ray through all MeshInstances and returns all hits sorted by ascending distance, one per MeshInstance. More... | |
Properties | |
| integer | id |
| Unique scene identifier. | |
|
Adds a MeshInstance by id to this scene for rendering.
| id | integer |
|
Notifies the renderer that the MeshInstance with the given id has been modified (transform, material, etc.).
| id | integer |
|
Removes a MeshInstance by id from this scene.
| id | integer |
|
Casts a ray through all MeshInstances and returns the closest hit, or nil. The length of direction defines the max distance.
| ray | Ray |
| parent | MeshInstance|nil |
|
Casts a ray through all MeshInstances and returns all hits sorted by ascending distance, one per MeshInstance.
| ray | Ray |
| parent | MeshInstance|nil |
| integer id |
Unique scene identifier.