AbstractLimitedContinuous2D
A 2D continuous environment with spatial constraints. Nodes cannot be added in positions that are not allowed, and subclasses stop them before reaching one through farthestReachablePosition.
Parameters
the incarnation used to build nodes and concentrations
Type Parameters
the concentration type
Inheritors
Properties
A factory of shapes compatible with this environment.
Functions
The farthest position reachable by node towards desired, avoiding node overlapping. Other nodes, considered through circular hitboxes of radius equal to the one of their shape, stop the movement where the hitbox of node first touches theirs; nodes already colliding with node stop it at its current position. Shapeless nodes do not collide.
Gets the heading of a node as a direction vector.
Gets all nodes whose shape.intersect is true for the given shape.
Gets the shape of a node relatively to its position and heading in the environment.
Creates an euclidean position from the given coordinates.
Sets the heading of a node.