Skip to main content

SphereInBoxStackingInstruction

A class in Root.Township, Alta.Inventory.

Stacking instructions asset that packs spheres in a box grid inside a dock. Created from the Township/Stacking asset menu.

Constructors​

MemberWhat it is
SphereInBoxStackingInstruction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private float diameterBacking field for Diameter.
private float spacingBacking field for Spacing.

Properties​

MemberWhat it is
float Diameter { get; }Diameter of one sphere.
float Size { get; }Space one sphere takes: diameter plus spacing.
float Spacing { get; }Gap between spheres.

Methods​

MemberWhat it is
override void DrawGizmos(Transform transform)Editor: draws the sphere and its spacing at the transform.

Used in​

Members of other types that take, return or hold a SphereInBoxStackingInstruction: