Skip to content

Latest commit

 

History

History
149 lines (85 loc) · 2.01 KB

model.md

File metadata and controls

149 lines (85 loc) · 2.01 KB

Class: model

Represents a model in the world. Can represent both an m2 and wmo model.

Table of contents

Constructors

Methods

Constructors

constructor

+ new model(): model

Returns: model

Methods

get_filename

get_filename(): string

Returns: string


get_pos

get_pos(): vector_3d

Returns: vector_3d


get_rot

get_rot(): vector_3d

Returns: vector_3d


get_scale

get_scale(): number

Returns: number


get_uid

get_uid(): number

Returns: number


has_filename

has_filename(name: string): boolean

Parameters:

Name Type
name string

Returns: boolean


remove

remove(): void

Returns: void


replace

replace(filename: string): any

Parameters:

Name Type
filename string

Returns: any


set_pos

set_pos(pos: vector_3d): void

Parameters:

Name Type
pos vector_3d

Returns: void


set_rot

set_rot(pos: vector_3d): void

Parameters:

Name Type
pos vector_3d

Returns: void


set_scale

set_scale(scale: number): void

Parameters:

Name Type
scale number

Returns: void