solidParts property

  1. @override
List<SolidPart> get solidParts
override

The shape as convex parts whose union it is, in its entity's own space (before the entity's scale). Empty for none.

Implementation

@override
List<SolidPart> get solidParts {
  final r = Primitive3D.size(radius), c = _half;
  return [c > 0 ? SolidCapsule(c, r) : SolidSphere(r)];
}