Package hype.core.interfaces

Examples of hype.core.interfaces.HDirectable.y()


    for(int i=0; i<numTargets; ++i) {
      HDirectable target = it.next();
     
      float rot = target.rotationRad();
      float tx = target.x();
      float ty = target.y();
     
      float goalx = _idleGoalX;
      float goaly = _idleGoalY;
      float goalz = 0;
      HLocatable goal = getGoal(target, app);
View Full Code Here


      rot += HMath.map(noise, 0,1, -_twitchRad,_twitchRad);
     
      // Apply the rotation and move to the direction of its rotation
      target.rotationRad(rot);
      target.x(target.x() + (float)Math.cos(rot)*_speed);
      target.y(target.y() + (float)Math.sin(rot)*_speed);
      target.z(goalz);
    }
  }
 
  @Override
 
View Full Code Here

      rot += HMath.map(noise, 0,1, -_twitchRad,_twitchRad);
     
      // Apply the rotation and move to the direction of its rotation
      target.rotationRad(rot);
      target.x(target.x() + (float)Math.cos(rot)*_speed);
      target.y(target.y() + (float)Math.sin(rot)*_speed);
      target.z(goalz);
    }
  }
 
  @Override
 
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.