Class DecalBuilder
Hierarchy
- DecalBuilder
Index
Methods
Methods
Static Create DecalSearch playground for CreateDecal
-
Creates a decal mesh. A decal is a mesh usually applied as a model onto the surface of another mesh. So don't forget the parameter
sourceMesh
depicting the decal- The parameter
position
(Vector3, default(0, 0, 0)
) sets the position of the decal in World coordinates - The parameter
normal
(Vector3, defaultVector3.Up
) sets the normal of the mesh where the decal is applied onto in World coordinates - The parameter
size
(Vector3, default(1, 1, 1)
) sets the decal scaling - The parameter
angle
(float in radian, default 0) sets the angle to rotate the decal
Parameters
-
name: string
defines the name of the mesh
-
sourceMesh: AbstractMesh
defines the mesh where the decal must be applied
-
options: { angle?: number; normal?: Vector3; position?: Vector3; size?: Vector3 }
defines the options used to create the mesh
Returns Mesh
the decal mesh
- The parameter
Class containing static functions to help procedurally build meshes