SkinnedModelRenderer
class SkinnedModelRenderer
It is responsible for rendering an object in the scene, and manipulating its material, 3D model, etc, the difference from using ModelRenderer, is that SkinnedModelRenderer is used for 3D objects with bones and animations.
public class SkinnedModelRenderer extends Component
— Constructors (1) —
Constructor | Description |
---|---|
SkinnedModelRenderer() | Creates a new SkinnedModelRenderer. |
— Methods (7) —
Name | Description |
---|---|
void setModelFile(VertexFile file) | Defines the file with the 3D model to be "file" argument. |
void setMaterialFile(MaterialFile file) | Defines the file with the material to be "file" argument. |
Material getMaterial() | Returns the SkinnedModelRenderer material. |
void setMaterial(Material material) | Sets the SkinnedModelRenderer material to be "material" argument. |
Vertex getVertex() | Return the SkinnedModelRenderer Vertex. |
void setVertex(Vertex vertex) | Sets the SkinnedModelRenderer vertex to be "vertex" argument. |
void attachPrimitive(int primitive) | Sets the SkinnedModelRenderer model to a primitive model to be "primitive" argument. |