Examples of GetY()


Examples of com.base.engine.core.Vector2f.GetY()

    if(m_mouseLocked)
    {
      Vector2f deltaPos = Input.GetMousePosition().Sub(centerPosition);

      boolean rotY = deltaPos.GetX() != 0;
      boolean rotX = deltaPos.GetY() != 0;

      if(rotY)
        GetTransform().Rotate(Y_AXIS, (float) Math.toRadians(deltaPos.GetX() * m_sensitivity));
      if(rotX)
        GetTransform().Rotate(GetTransform().GetRot().GetRight(), (float) Math.toRadians(-deltaPos.GetY() * m_sensitivity));
 
View Full Code Here

Examples of com.base.engine.core.Vector2f.GetY()

      boolean rotX = deltaPos.GetY() != 0;

      if(rotY)
        GetTransform().Rotate(Y_AXIS, (float) Math.toRadians(deltaPos.GetX() * m_sensitivity));
      if(rotX)
        GetTransform().Rotate(GetTransform().GetRot().GetRight(), (float) Math.toRadians(-deltaPos.GetY() * m_sensitivity));

      if(rotY || rotX)
        Input.SetMousePosition(centerPosition);
    }
  }
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.