Advertisement
Guest User

Untitled

a guest
May 26th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. private void Move() {
  2. if (w) {
  3. //y += 0.02f;
  4. x = (float) (radius * Math.cos(Math.toRadians(angle)));
  5. y = (float) (- radius * Math.sin(Math.toRadians(angle)));
  6. }
  7. if (d) {
  8. x += 0.02f;
  9. }
  10. transform3D.setTranslation(new Vector3f(x, y, 0));
  11.  
  12.  
  13. car.setTransform(transform3D);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement