ContinuousPhysics2DEnvironment
open class ContinuousPhysics2DEnvironment<T>(incarnation: Incarnation<T, Euclidean2DPosition>) : Continuous2DEnvironment<T> , Physics2DEnvironment<T> (source)
Implementation of Physics2DEnvironment.
Inheritors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
A factory of shapes compatible with this environment.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun farthestReachablePosition(node: Node<T>, desired: Euclidean2DPosition): Euclidean2DPosition
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.
Link copied to clipboard
Gets the heading of a node as a direction vector.
Link copied to clipboard
Gets all nodes whose shape.intersect is true for the given shape.
Link copied to clipboard
Gets the shape of a node relatively to its position and heading in the environment.
Link copied to clipboard
Creates an euclidean position from the given coordinates.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun observeNodesAround(position: Euclidean2DPosition, range: Double): ObservableSet<Node<T>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets the heading of a node.
Link copied to clipboard