public void beginCheckShootBall(FixVector2 direction) { FBActor actor = m_ball.owner; if (actor == null) { return; } if (actor.passBallPressed) { return; } FixVector2 destDirection = FixVector2.kZero; positiveDoorSide = getDoorSide(actor, direction, out destDirection); destDirection = getClampedDirection(actor.direction, destDirection, actor.configuration.shootBallAngleTorelance); actor.doShootBall(destDirection); }