timelinefx:timelinefx.tlCollisionResult.GetReboundVector
Method GetReboundVector:tlVector2( v:tlVector2, friction:Float=0, bounce:Float=1 )
Get the rebound vector Returns New tlVector2 with the resulting rebound vector When an object collides with a surface you may want to know a resulting vector based on bounce and friction. So you can call this and pass the velocity vector of the incoming object, and the amount of bounce and friction to have, where a bounce value of 1 and a friction value of 0 will result in a perfect bounce.
Parameters
v The impact vector
friction Friction can be used to dampen the impact
bounce The amount of elasticity in the bounce