Namespace XRC.Students.SU2023.IN03.Chen
Classes
BaseCubeController
Interprets properties of the simplest unit - cube, such as OnSelect. Displays a line between the selected cube and its nearest neighbour cube.
CenterController
Interprets properties of the parent cube. Default is disabled. This script is only enabled when it received set parent input.
GroupingInputManager
This class handles grouping input actions on the controller
GroupMoveController
Smooth the child cube towards the parent cube position
LineController
Displays a line between the selected cube and its nearest neighbour cube.
MappingController
If you're pulling an object towards the main camera, map the controller position to certain world position by applying a log transformation
SourceCubeController
Create a new cube prefab when hovering on the source cube
Interfaces
IBaseCube
The basic properties of the cube - the simplest unit of grouping interaction
ICenter
Interprets properties of the parent cube. Default is disabled. This script is only enabled when it received set parent input.
ICreateCube
Create a cube (prefab) at the position of the the sourceCube
ICubeVisualFeedback
The visual feedback of cube after its state changes between parent and child.
ILine
Create and Update the lines connecting cubes with potential grouping relationships and those connecting established parents and children.
IMapping
Helpers for mapping the controller position to certain world position by applying a log transformation
IRotateTowards
Update the cube so that it always rotates towards the main camera
ISmoothDamp
Smooth the child cube position towards the parent cube position