Constructor
new Model(filePath)
Constructor
Parameters:
Name | Type | Description |
---|---|---|
filePath |
string | Path to the file with model's data |
Extends
Members
Methods
draw(renderTarget)
Draw the element
Parameters:
Name | Type | Description |
---|---|---|
renderTarget |
RenderTarget | Renderer who called this method |
- Overrides:
loadFromFile(filePath)
Load model from a file
Parameters:
Name | Type | Description |
---|---|---|
filePath |
string | Path to the file with model's data |
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 |
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:
True if visit was successful, otherwise false
boolean