/** * Stores information about Physics2DPlugin tweens.

* * Copyright 2011, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership. * * @author Jack Doyle, jack@greensock.com */ class com.greensock.plugins.helpers.Physics2DProp { public var start:Number; public var velocity:Number; public var v:Number; public var a:Number; public var value:Number; public var acceleration:Number; public function Physics2DProp(start:Number, velocity:Number, acceleration:Number, stepsPerTimeUnit:Number) { this.start = this.value = start; this.velocity = velocity || 0; this.v = this.velocity / stepsPerTimeUnit; if (acceleration || acceleration == 0) { this.acceleration = acceleration; this.a = this.acceleration / (stepsPerTimeUnit * stepsPerTimeUnit); } else { this.acceleration = this.a = 0; } } }