MeshComponent constructor
MeshComponent({
- required Mesh mesh,
- Vector3? position,
- Quaternion? rotation,
A Component3D that renders a Mesh at the position
with the rotation
and scale applied.
This is a commonly used subclass of Component3D.
Implementation
MeshComponent({
required Mesh mesh,
super.position,
super.rotation,
}) : _mesh = mesh;