Package-level declarations
Types
Functions
Find the best spot of the upper side of the block
Finds the rotation to the closest point on the expectedTarget, that if possible also points to the crystal that will that could be above the position.
Finds a point that is visible from the virtual eyes.
Creates rotation matrices: The first allows to turn the vec (1.0, 0.0, 0.0) into the given vec. The second allows to turn the given vec into (1.0, 0.0, 0.0).
Projects points onto the targetBox. The points are uniformly distributed from the perspective of virtualEye.
Find the best spot of a box to aim at.
Find the best spot of the upper block side
Aims at the first block from candidates whose face is reachable within the given ranges and returns its position, or null if none is reachable. Skips setting the rotation target when rotate is false, e.g. when another module owns the rotation.