API Docs for: 0.9.16
Show:

BaseEntity Class

Defined in: phoria-entity.js:12
Module: Entity

BaseEntity is the base that other Entity prototypes extend from. Provides functions to perform chained matrix operations and maintains the child entity list. It also provides the onScene event handler functions.

Item Index

Methods

Methods

create

(
  • desc
  • e
)

Defined in phoria-entity.js:26

Factory create method - object literal Entity descripton: { id: string, matrix: mat4, children: [...], onBeforeScene: function() {...}, onScene: function() {...}, disabled: boolean }

Parameters:

  • desc Object

    description

  • e Phoria.Entity

    entity