Class

Model

Model(filePath)

A model

Constructor

new Model(filePath)

Constructor
Parameters:
Name Type Description
filePath string Path to the file with model's data

View Source Objects/Model.js, line 10

Extends

Members

Array.<Mesh>

meshes

Meshes

View Source Objects/Model.js, line 25

Methods

draw(renderTarget)

Draw the element
Parameters:
Name Type Description
renderTarget RenderTarget Renderer who called this method
Overrides:

View Source Objects/Model.js, line 56

loadFromFile(filePath)

Load model from a file
Parameters:
Name Type Description
filePath string Path to the file with model's data

View Source Objects/Model.js, line 67

update(deltaTime, parentUpdated) → {boolean}

Update the node and his children
Parameters:
Name Type Description
deltaTime number A floating value representing time elapsed between two frames
parentUpdated boolean Indicates if the parent element have been updated

View Source Objects/Model.js, line 39

True if the node have been updated
boolean

visit(renderTarget) → {boolean}

Visit the node and his children
Parameters:
Name Type Description
renderTarget RenderTarget Renderer who called this method
Inherited From:

View Source Objects/Drawable.js, line 23

True if visit was successful, otherwise false
boolean