Package org.pollux3d.motion

Source Code of org.pollux3d.motion.ShipDemoMotion

package org.pollux3d.motion;

import com.jme3.math.Vector3f;
import com.jme3.math.Spline.SplineType;

public class ShipDemoMotion extends ShipMotionPath {
  public ShipDemoMotion() {
    this.addShipWayPoint(new Vector3f(-1350, 0, 0), 0);
    this.addShipWayPoint(new Vector3f(-500, 0, 0), 0);
    this.addShipWayPoint(new Vector3f(0, -150, 0), 0);
    this.addShipWayPoint(new Vector3f(300, -100, 0), 0);
    this.addShipWayPoint(new Vector3f(500, 300, 0), 0);
    this.addShipWayPoint(new Vector3f(500, 300, 500), 1);
    this.addShipWayPoint(new Vector3f(500, 300, 1500), 0);
    this.addShipWayPoint(new Vector3f(0, 300, 1500), 0.5f);
   


    this.setCurveTension(1f);
   
    this.setPathSplineType(SplineType.CatmullRom);
  }
}
TOP

Related Classes of org.pollux3d.motion.ShipDemoMotion

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.