Options
All
  • Public
  • Public/Protected
  • All
Menu

A basic Object2D that handle its shape and its material

Hierarchy

Index

Constructors

Properties

children: Mesh[] = []
id: number = ...
material: Material
parent: null | Object2D = null
position: Vector2 = ...
rotation: number = 0
scale: number = 1
shape: Shape
type: string = 'Mesh'
visible: boolean = true

Methods

  • render(context: CanvasRenderingContext2D): void
  • Render the mesh shape and material in its own context. Restore the default context afterwards.

    Parameters

    • context: CanvasRenderingContext2D

    Returns void

Generated using TypeDoc