-
Notifications
You must be signed in to change notification settings - Fork 0
TimeTracer
MisterCavespider edited this page Aug 26, 2017
·
1 revision
TimeTracer
is a class that adds the position of a Spatial
to a LineString
at given intervals.
The time between intervals is called updateTime
and is given in milliseconds.
It will also connect the LineString
to a live position of the Spatial
, so there is no gap between the
track and the object.
The
TimeTracer
attaches theLineString
to the parent of theSpatial
it is controlling, which means that, by definition, you cannot apply the time tracer to therootNode
.
It is simple to use, and has a lot of constructors
...
// A new time tracer that updates every 10ms and has a maximum buffer size of 512
TimeTracer tt = new TimeTracer(mat, 10, 512);
//Add to existing geometry
g.addControl(tt);