ShadowCasting

class ShadowCasting(startPoint: Vec2, distance: Double)

A class for generating polygons that can mimic line of sight around objects and cast shadows.

Constructors

Link copied to clipboard
fun ShadowCasting(startPoint: Vec2, distance: Double)

Functions

Link copied to clipboard
fun updateProjections(bodiesToEvaluate: ArrayList<TranslatableBody>)

Updates the all projections in world space and acquires information about all intersecting rays.

Properties

Link copied to clipboard
val noOfRays: Int

Getter for number of rays projected.

Link copied to clipboard
val rayData: ArrayList<RayAngleInformation>
Link copied to clipboard
var startPoint: Vec2