Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

ThrowPropsPlugin.getVelocity()

ThrowPropsPlugin.getVelocity( target:Object, prop:String ) : Number

[static] Returns the current velocity of the given property and target object (only works if you started tracking the property using the ThrowPropsPlugin.track() or VelocityTracker.track() method).

Parameters

target: Object

The object whose property is being tracked.

prop: String

The property name, like "x".

Returns : Number

The current velocity

Details

Returns the current velocity of the given property and target object (only works if you started tracking the property using the ThrowPropsPlugin.track() or VelocityTracker.track()method).

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.
×