chage-Class-disgram

master
王宇洋 3 years ago
parent c9f9629737
commit eae7bd1b84

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -46,6 +46,8 @@ public class Human extends SceneObject {
private int stopCount = 0;
private float angle;
private Boolean isJumping = false;
public Human(Point4f origin, Point4f position, Vector4f scale) {
super(origin, position, scale);
}
@ -75,6 +77,10 @@ public class Human extends SceneObject {
}
}
public void jump(){
}
public void stop() {
if(stopCount > 5) {
isWalking = false;

@ -104,7 +104,7 @@ public class Scene {
float new_z = (float) (tmp.length() * Math.cos(Math.toRadians(angle)));
tmp.x = -new_x;
tmp.z = new_z;
System.out.println(tmp);
// System.out.println(tmp);
move = tmp.PlusVector(move);
human.setAngle(-angle);
}

@ -35,6 +35,7 @@ public class Camera {
public void setCamera(Vector4f v) {
inital_camera_position = v;
// glRotatef(rotationX, 1, 0, 0);
// glRotatef(rotationY, 0, 1, 0);
// glRotatef(rotationZ, 0, 0, 1);

@ -62,7 +62,7 @@ public class Main {
}
if(FPS_MODE){
camera.setCamera(new Vector4f(
0, -500, 0, 0
0, -300, 0, 0
));
}
else{

Loading…
Cancel
Save