Constructors
constructor
- new Model(id: string, scenegraph: string, sizeScale: number, sizeMinPixels: number, sizeMaxPixels: number, speed: number): Model
-
Parameters
-
id: string
-
scenegraph: string
-
sizeScale: number
-
sizeMinPixels: number
-
sizeMaxPixels: number
-
speed: number
Accessors
sizeMaxPixels
- get sizeMaxPixels(): number
sizeMinPixels
- get sizeMinPixels(): number
Methods
setScenegraph
- setScenegraph(scenegraph: string): void
A model defines how a Vehicle should look like on map. Model supports glbt files. It also needs some information about the size of the model.
const model = new Mapster.Model( 'red', 'https://stsiliantstaticdev.blob.core.windows.net/map-3d-models/taxi.glb', 10, 7, 100, 2)