Game::Model
Inherits Reference < Object
Constructors
new(model : LibRay::Model = LibRay::Model.new, position : ::Game::Vector3 = Vector3.new, scale : Float32 | Int32 = 1, tint : ::Game::Color = Color::White)
SourceClass methods
draw_grid(slices = 10, spacing = 1)
Sourcefrom_mesh(mesh : Mesh)
SourceInstance methods
draw
Sourceposition
Sourceposition=(position : Vector3)
Sourcerotate_x(degrees : Int32 | Float32)
Sourcerotate_y(degrees : Int32 | Float32)
Sourcerotate_z(degrees : Int32 | Float32)
Sourcescale(v : Vector3)
Sourcescale
Sourcescale=(scale : Int32 | Float32)
Sourceset_mesh_material(mesh_id)
Sourceset_texture(texture)
Sourcetint
Sourcetint=(tint : Color)
Sourceto_struct
Sourcetransform=(transform : Matrix)
Sourcetranslate(v : Vector3)
Source