This puzzle pack includes a set of clases for the creation of puzzles which involve rotating elements.

TransformReferences

This component allows to define a set of rotations by using multiple transforms and an string identifier.

This component can be reused by multiple elements of a puzzle

Untitled

RotatableObject

This class can be used to rotate an object using the rotation references provided by the component TransformReferences.

Untitled

With this component in place the object can be rotated or snapped by using the methos RotateTo and SnapTo.

RotatableObjectPuzzle

This puzzle expect multiple RotatableObjects to end up at a specific rotation. To define the solution we need to use the identifiers defined in the provided TransformReferences on the RotatableObject component.

Untitled