Nombre |
Descripción |
Parámetros |
Valor de retorno |
make_mesh |
|
Nombre |
Descripción |
points |
vertices |
normals |
normals for each vertex |
uvs |
uv for each vertex |
faces |
list of vertices forming faces |
|
An array with the vertices from a model, and an array containing the faces |
load_mesh |
|
Nombre |
Descripción |
filename |
File to load |
|
An array with the vertices from a model, and an array containing the faces |
make_colision_mesh |
|
Nombre |
Descripción |
vertices |
vertices |
indices |
list of vertices for the faces |
|
vertices, center and max distance from any vertex to the center |
make_sprite |
Generates new sprite |
Nombre |
Descripción |
points |
(optional) points of the sprite in space |
texture |
sprite texture |
pixels_per_unit |
pixels per unit (default 32) |
max_size |
max shape |
pivot |
pivot |
offset |
offset from the pivot |
|
mesh data |
sprite_frames_by_grid |
|
Nombre |
Descripción |
grid |
grid that generates the sprite sheet |
|
a list of masks containing every sprite state |
load_texture |
|
Nombre |
Descripción |
route |
route of the texture file |
|
texture as a numpy array |