Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mesh

example
entity.addComponent(Mesh);
entity.addComponent(Mesh, { type: MeshTypes.Ground, options: { width: 2, height: 2 } });
entity.addComponent(Mesh, { type: MeshTypes.Sphere, options: { diameter: 2 } });
entity.addComponent(Mesh, { type: MeshTypes.Url, url: "PATH_TO_MESH" });

Hierarchy

  • Mesh

Implements

Index

Properties

Properties

object

object: Mesh

Optional options

options: MeshOptions
default

{}

memberof

Box, Plane, Sphere, Ground

Optional scene

scene: Entity

Optional type

type: MeshTypes = MeshTypes.Box
default

"Box"

Optional url

url: String
memberof

Url

Generated using TypeDoc