Skip to content

Entities

rust edited this page Mar 28, 2024 · 5 revisions

An entity is used to group and control a set of client created resources. Anything, like Scenes and Models, created by your vu 3D application is considered an entity.

Eng.AddScene is the starting point. It creates a Scene, A Camera, a hidden root and returns an entity.

Eng.AddModel adds a renderable entity to a scene or to another model. The entity can be positioned and rotated as needed.

It is applications responsiblity to track and control the created entities. Entity methods expect functionality, as per their documentation, and will log an error if the functionality does not exist. For example some entity methods like Entity.Exists work for any entity. Other methods like Entity.Cam only work for a Scene entity.

Clone this wiki locally