Examples of SituatedObject


Examples of fr.utbm.gi.vi51.framework.environment.SituatedObject

 
  public AnimatAction Gravity(LemmingBody body, AnimatAction animatAction)
  {
    for(int index2=0; index2<mapElements.size(); index2++)
    {
      SituatedObject element = mapElements.get(index2);
      if (element != null)
      {
        if (collision(body.getX(), body.getWidth() + body.getX(), element.getX(), element.getWidth() + element.getX())
            && collision(body.getY(), body.getHeight() + body.getY(), element.getY(), element.getHeight() + element.getY()))
        {
          body.setFallingTime(0);
          return new AnimatAction(body, new Vector2d(animatAction.getTranslation().x, (double) 0), animatAction.getRotation());
        }
      }
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.