The PlaceObjectsPuzzle component can be used for puzzles where different pieces have to be arranged in a specific way.

In the PuzzlePack 1, this is used in the ClockHands puzzle, where both clock hands have to be placed at a specific rotation.

Defining placing slots

To define the places where objects can be placed a different GameObject has to be placed at the desired location and rotation with a PlaceableObjectSlot component.

For the clock hands puzzle a different object is used for each hour.

Untitled

Defining placeable objects

For the objects that will be able to be moved to these positions, a PlaceableObject component needs to be added. You can also define an Offset if necessary.

Untitled

Specifying the solution

On the PlaceObjectsPuzzle component, you can define the solution by adding a list of pairs indicating the placeable/slot on the Solution list.

Only one valid solution is supported at the moment.

Untitled

Moving pieces