Jump to content
GreenSock

VelocityTracker

.addProp()

.addProp( prop:String, type:String ) :

Adds a property to track

Parameters

prop: String

the property name, like "x" or "y"

type: String

(default = num) — "rad" for radian-based rotation or "deg" for degree-based rotation – this is only useful to define if the property is rotation-related and you’d like to have VelocityTracker compensate for artificial jumps in the value when the rotational midline is crossed, like when rotation goes from 179 to -178 degrees it would interpret that as a change of 3 instead of 357 degrees. Leave this blank unless you want the rotational compensation.

Details

Adds a property to track

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×