|
Hello guys, is this the right script or place to look for line ??? Still can not pin point exact array line.
rebuildGuidelineLengthCalculator();
}
public static var GuideLengthCalculator:Function = null;
private static function rebuildGuidelineLengthCalculator() : void {
GuideLengthCalculator = function(a_nGuideVelocity:Number, collisionBallVelocity:Number):Number
{
var nRelativeLineX:Number = a_cLineEnd.x - a_cLineStart.x;
var nRelativeLineY:Number = a_cLineEnd.y - a_cLineStart.y;
var nLineLength:Number = Math.sqrt(nRelativeLineX * nRelativeLineX + nRelativeLineY * nRelativeLineY);
var nLineNormalX:Number = -nRelativeLineY / nLineLength;
var nLineNormalY:Number = nRelativeLineX / nLineLength;
|