CompoundShape3D class final

Several shapes as one: a staircase of boxes, an arch of hulls. Each part is placed in its body's space — a TransformedShape3D for one that is not at the body's origin. Any body type may have one, a dynamic body included, so a concave thing made of convex parts can tumble.

Inheritance

Constructors

CompoundShape3D(List<Shape3D> parts)
parts, at least one.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
isValid → bool
Whether this shape is well formed: every size finite and above zero, a hull of at least 4 points, a mesh of at least one triangle whose indices are all in its vertex list, a height field of at least 4 × 4 samples, a compound of at least one part, every number finite, a rotation of some length. A body of a shape that is not is never made (createBody returns 0) and a query with one finds nothing, on every backend. A backend can still refuse a well-formed shape it cannot build — Jolt a hull whose points are all on one plane, or a mesh of only degenerate triangles — so check what createBody returns.
no setterinherited
parts → List<Shape3D>
The shapes it is made of.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override