FieldOfView2D

constructor(environment: Physics2DEnvironment<T>, owner: Node<T>, distance: Double, aperture: Double)(source)

Parameters

environment
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.