class Prism::Entity

Overview

A default entity with some standard components baked in.

Direct Known Subclasses

Defined in:

prism/stdlib/entity.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add(camera_controls : Prism::CameraControls::Controller) #

Force all camera controls under the same class type So the rendering system can find them.


[View source]
def material : Prism::Material #

Shortcut to retrieve the Material component.


[View source]
def transform : Prism::Transform #

Shortcut to retrieve the Transform component.


[View source]