Esempio n. 1
0
    public static Steering getSteering(float maxAcceleration, float maxSpeed, Kinematic character,
        IPath path, int pathOffset)
    {
        currentParam = path.getParam(character.position, currentParam);

        int targetParam = currentParam + pathOffset;

        Kinematic target = new Kinematic(path.getPosition(targetParam));

        return Seek_S.getSteering(maxAcceleration, maxSpeed, character, target);
    }