Start to a 3D Platform Demo written using JOGL and JOGL Utils.
You can control Steve, the 3D character, and rotate the camera.
You can also place custom-sized objects in the 3D world and test how the character intertacts with them.
It's written using a custom library on top of JOGL to load 3D model files and animations (library source in seprate repo) and it includes all the math for calculating motion, 2D => 3D projections, 3D collisions, and more.
Clone or download the project onto your local machine. If you don't already have gradle, you can run the project the wrapper and the following commands:
./gradlew build
./gradlew run
Alternatively, if you do have gradle, the following two commands will run quicker:
gradle build
gradle run
-
Move Left - A
-
Move Right - D
-
Move Forward - W
-
Move Back - X
-
Move Diagonally - Q,E,Z,C
-
Jump - Space
-
Rotate Camera - R,T
-
Toggle god mode - G
-
Switch view from axis - X,Y,Z (hold ctrl to flip)
-
Move Platform - Shift + Mouse Drag
-
Place Platform - P + Single Click
-
Resize Platform - X, Y, or Z and S (X,Y,Z refers to the axis on which you wish to resize)