Skip to main content

SphereInBoxStackingInstructionSetup

A class in Root.Township, Alta.Inventory.

Builds the stacking layout for the sphere in box instruction: a grid of randomly rotated, slightly jittered items filling the bounds.

Constructors​

MemberWhat it is
SphereInBoxStackingInstructionSetup()Creates a SphereInBoxStackingInstructionSetup with default values.

Fields​

1 private and internal field
MemberWhat it is
private int levelCountHow many items fit in one layer.

Methods​

MemberWhat it is
protected override void Setup(Bounds bounds, SphereInBoxStackingInstruction instructions)Fills Positions and MaxQuantity with a 3D grid, bottom layer first.