Creates a new Trajectory.
The game instance.
X coordinate
Y coordinate
starting angle of the trajectory
time (in milliseconds) for how long the object already exists in the game
The game instance.
Optionalmaxoptional duration in milliseconds for how long the object should still exist in the game
OptionaltileMarks the object as deleted.
Draws the trajectory.
The context.
Is the object marked as deleted?
Update the position of the object on the map
a coordinate tuple (x, y)
Calculates the trajectory.
Represents a trajectory for ray-casting or lasers.