Interception Algorithm

I have finished Calculations on my Interception Algorithm i will take care of.

As this is some often known Problem i want to present u my results.

If there are clumsy things in it, things that could be made better, feel free to tell me, this is what works for me after much researches…


package com.basics.ai.algorithm;

import com.jme.math.*;
import com.jme.scene.*;
import com.jme.scene.shape.*;
import com.jme.input.action.InputActionEvent;
import jmetest.flagrushtut.lesson6.Vehicle;

import com.basics.ai.exception.*;
import com.basics.ai.*;

public class InterceptAlgorithm extends DeterministicAlgorithm{

/**
* This value decides wether this is a Chase Algorithm or
* some try to Evade, by means Evade will be the Standard
* as false.
*/
boolean typeOfAlgo = false;
/**
* The Range this Algorithm will be controlled
*/
float maxRangeToClose = 20f;