Method BoxMesh
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
BoxMesh(Vector3, Vector3, bool)
Builds a closed box as a triangle mesh.
public static CollisionMesh BoxMesh(Vector3 center, Vector3 extents, bool identifyEdges = true)Parameters
centerVector3-
The centre of the box.
extentsVector3-
The half-widths of the box.
identifyEdgesbool-
Whether to compute adjacency.
Returns
- CollisionMesh
-
The mesh.
Remarks
A Box3D.Box is cheaper for a solid box. This exists for cases that specifically need mesh behaviour, such as per-triangle materials.