Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Move() {
- if (w) {
- //y += 0.02f;
- x = (float) (radius * Math.cos(Math.toRadians(angle)));
- y = (float) (- radius * Math.sin(Math.toRadians(angle)));
- }
- if (d) {
- x += 0.02f;
- }
- transform3D.setTranslation(new Vector3f(x, y, 0));
- car.setTransform(transform3D);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement