Skip to content

API V2 Reference: FastCast

Eti edited this page Sep 4, 2020 · 4 revisions

This is obsolete. Visit https://etithespirit.github.io/FastCastAPIDocs/ instead.

FastCast is the root class of the modules and offers the surface level methods required to make it work.

Constructors

Caster FastCast.new()

Construct a new Caster instance, which represents an entire gun or other projectile launching system.

Properties

boolean DebugLogging

If true, verbose debug logging will be used, printing detailed information about what's going on during processing.

boolean VisualizeCasts

⚠️ Setting this to true can be severely detrimental to performance and should only be used when debugging!
If true, casts will be shown ray-by-ray in the 3D world. Black cones will be used to visualize each ray segment, and red (or green) spheres will be used to show hits. A red cone signifies a raycast that was ignored due to bullet piercing. Green spheres indicate a hit that was ignored for the same reason. Red spheres indicate a cast that hit an object.