Physics Environment
An environment supporting physics and nodes shapes. Note: due to the high number of parameters it's highly recommended not to use this interface directly, but to create an apposite interface extending this one instead.
Parameters
Inheritors
Functions
Computes the farthest position reachable by a node towards a desiredPosition, avoiding node overlapping. If no node is located in between, desiredPosition is returned. Otherwise, the first position where the node collides with someone else is returned. For collision purposes, hitboxes are used: each node is given a circular hitbox of radius equal to its shape's radius (shapeless nodes can't cause overlapping). The client can specify a different radius for the hitbox of the moving node.
Gets the heading of a node as a direction vector.
Returns a random element of the Iterable using the provided randomGenerator.
Sets the heading of a node.
Returns the EnvironmentSubscriptionMonitor of this Environment.
Converts an Environment to a EnvironmentSurrogate.