Capítulo 251 de 411
Starts automatically tracking the velocity of the given properties on a target every tick, so later code (or an inertia tween) can read that velocity without manually recording position/time samples.
| Parameter | Type | Description |
|---|---|---|
| target | Element | String | Array | element(s) to track |
| props | String | comma-delimited property names, e.g. "x,y,rotation" |
Returns: Array of VelocityTracker objects (one per target).
InertiaPlugin.track(obj, "x,y");
// later:
let vx = InertiaPlugin.getVelocity(obj, "x");
throwProps-style inertia tween.InertiaPlugin directly rather than the tracker instance.