Examples of CatmullRomSpline


Examples of com.ardor3d.spline.CatmullRomSpline

        };

        final List<ReadOnlyVector3> controls = Arrays.asList(vectors);

        // Create our curve from the control points and a spline
        final Curve curve = new Curve(controls, new CatmullRomSpline());

        // Create a line from the curve so its easy to check the box is following it
        final Line line = curve.toRenderableLine(10);

        if (loop) {
View Full Code Here

Examples of com.ardor3d.spline.CatmullRomSpline

                new Vector3(-5, 0, -30) };

        final List<ReadOnlyVector3> controls = Arrays.asList(vectors);

        // Create our curve from the control points and a spline
        final Curve curve = new Curve(controls, new CatmullRomSpline());

        // Create a line from the curve so its easy to check the box is following it
        final Line line = curve.toRenderableLine(10);
        line.setRandomColors();
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.