FieldOfView2D

class FieldOfView2D<T>(env: Physics2DEnvironment<T>, owner: Node<T>, distance: Double, aperture: Double) : InfluenceSphere2D<T>

A sphere of influence representing the sight of a node in the Euclidean world.

Parameters

env
    the environment where this sphere of influence is.
owner
    the node who owns this sphere of influence.
distance
    the distance in meters at which the sight arrives.
aperture
    the amplitude of the field of view in radians.

Constructors

Link copied to clipboard
fun <T> FieldOfView2D(env: Physics2DEnvironment<T>, owner: Node<T>, distance: Double, aperture: Double)

Functions

Link copied to clipboard
open override fun influentialNodes(): List<Node<T>>

The list of nodes relevant for this sphere of influence.