Skip to content

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 the LineString to the parent of the Spatial it is controlling, which means that, by definition, you cannot apply the time tracer to the rootNode.

Usage

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);
Clone this wiki locally