Package com.badlogic.gdx.math

Examples of com.badlogic.gdx.math.CatmullRomSpline


  public SplineMove(MovableEntity entity, Array<Vector2> path, int pointsPerSegment) {
    this.pointsPerSegment = pointsPerSegment;
    setDone(false);

    this.entity = entity;
    spline = new CatmullRomSpline();

    // adds the points given to the spline as control points
    // the mandatory length is 4 and the first and last are not used as
    // control points
    for (Vector2 point : path) {
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.math.CatmullRomSpline

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.