new module:Model(model, satellite, position)
Constructs model of the satellite on the given position.
Parameters:
Name | Type | Description |
---|---|---|
model |
Object | Model information. Collada information. |
satellite |
Object | The details about the satellite and the way it should be transformed and presented. |
position |
Position | The exact position of the center of the satellite. |
- Source:
Classes
Methods
draw(position, modelData)
Draws the collada model into a Collada Scene.
Parameters:
Name | Type | Description |
---|---|---|
position |
Position | Position of the satellite. |
modelData |
Collada Model Information. |
- Source:
parse(jsonData) → {Object}
Parses the collada model and update the information relevant to the satellites.
Parameters:
Name | Type | Description |
---|---|---|
jsonData |
Object |
- Source:
Returns:
Collada model.
- Type
- Object
position(position)
Updates the position of the model.
Parameters:
Name | Type | Description |
---|---|---|
position |
Position | Current position of the model. |
- Source:
render()
- Source: