Package org.newdawn.slick.geom

Examples of org.newdawn.slick.geom.Vector2f.copy()


        PositionComponent posComp = (PositionComponent) getSiblingByType(PositionComponent.class.getName());
        if(posComp != null){
          Vector2f pos = posComp.getVector();
          if(pos != null && centreOfOrbit != null && !pos.equals(centreOfOrbit)){
            TimePassedEvent t = (TimePassedEvent) e;
            posComp.setVector(VectorUtil.rotateAround(pos.copy(), centreOfOrbit, t.getDelta()*orbitalVelocity));
          }
        }
      }
    }
  } 
 
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.