Skip to content

CastTrajectory

Internal Class

This is an internal class intended to be used by FastCast itself, and should not be edited by you in any way. Changing any of these properties will cause ray simulation to completely break. If you need to change your ActiveCast's trajectory, use the methods provided by the ActiveCast object instead.

A CastTrajectory is an object that represents a segment of an ActiveCast's trajectory. ActiveCasts are graphed as Piecewise Functions, and a CastTrajectory represents one of its pieces.



Properties


number StartTime

The relative time that this CastTrajectory started at in seconds. This value is always relative to its parent ActiveCast (which, by extension, means that the first CastTrajectory instance in an ActiveCast will always have a StartTime of 0.)


number EndTime

The relative time that this CastTrajectory ended at in seconds, or -1 if it has not ended yet. This value is always relative to its parent ActiveCast's start time.


Vector3 Origin

The position of the ActiveCast when this trajectory was created.


Vector3 InitialVelocity

The velocity of the ActiveCast when this trajectory was created.


Vector3 Acceleration

The acceleration of the ActiveCast when this trajectory was created.