CuboidShape class final
Axis-aligned box centred on the origin.
Uses 24 vertices rather than 8: each face needs its own normal and UV set, and sharing corners would average the normals into something round.
Named "cuboid" rather than "box" because flutter/material.dart exports a
BoxShape enum, and a clash there would force every app importing both to
disambiguate.
Constructors
- CuboidShape({Vector3? size})
Properties
Methods
-
build(
{VertexLayout layout = VertexLayout.standard}) → MeshData -
Generates the geometry for the requested
layout.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited