MeshComponent constructor

MeshComponent({
  1. required Mesh mesh,
  2. Vector3? position,
  3. Vector3? scale,
  4. Quaternion? rotation,
})

An Object3D that renders a Mesh at the position with the rotation and scale applied.

This is a commonly used subclass of Object3D.

Implementation

MeshComponent({
  required Mesh mesh,
  super.position,
  super.scale,
  super.rotation,
}) : _mesh = mesh;