Variables

frustumCulling:Bool

If enabled, this will perform frustum culling, meaning this object will disable its rendering when it's not visible by the camera. If you have many many objects on-screen that shouldn't be visible off-screen, keep this enabled

deactivateWhenCulled:Bool

If true, this object will not call update(). Keep in mind this will disable any logic you've put here if extending this class.

cullMargin:Float

The scale for the meshes extents, increase this if your object gets culled too early

culled:Bool

This value is set per-camera at draw time, indicating if the model has been culled

To disable these calculations, set frustumCulling to disabled