Model: Difference between revisions

From Crumbled World Wiki
 
Line 75: Line 75:
|-
|-
|
|
|[[Mesh:setRederLevel(int renderLevel)|setRederLevel]](int renderLevel)
|[[Mesh:setRenderLevel(int renderLevel)|setRenderLevel]](int renderLevel)
|Set render Level [0-32].
|Set render Level [0-32].
|-
|-

Latest revision as of 18:12, 7 February 2026

ModelExampleCode

Inheritance

SceneNode

Static functions

return function description
Model new() Create a new Instance of the the Model
Model new(Model model) Create a new Instance of the the Model

Functions

return function description
int getNumMesh() Get num meshes.
Mesh getMesh(string name) get mesh by name.
Mesh getMesh(int index) Get mesh by index.
bool getCollisionEnabled() Get is collision enambled
float getHeight() Get an approximated height of the model.
string getFileName() Get the models file name.
bool getVisible() Get if the model is visible.
AnimationManager getAnimation() Get if the models animation manager.
Box getGlobalModelBounds() Get models current existing vertex bounds;
setCollisionEnabled(bool enable) Set is collision enambled
setColor(Vec3 color) Set is model color.
setColor(Vec4 color) Set is model color.
setRenderLevel(int renderLevel) Set render Level [0-32].
rotate(Vec3 axis, float rad) roate around axis.
rotateAroundPoint(Vec3 axis, Vec3 point, float rad) roate around a given point on the given axis.