MeshComponent constructor

MeshComponent({
  1. required Mesh mesh,
  2. Vector3? position,
  3. 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;