Commit 68c7af02 authored by Mohan  Guo's avatar Mohan Guo
Browse files

Upload New File

parent 666231ba
Loading
Loading
Loading
Loading

INSTALL.txt

0 → 100644
+20 −0
Original line number Diff line number Diff line
Pre-conditions
All computer types are available


Supporting files:
Because our project uses the jbullet library and vecmath library, but the jar packages of these libraries are no longer maintained, we adopted the maven project and introduced related dependencies.

So the only thing you need to do is download and configure maven


Execution:
Once you have maven installed and configured, you can successfully test our bouncing shape project by following the steps below:

1. First download the project on gitlab locally and unzip it
2. Open the project with IDEA
3. Right-click the pom.xml file and select "Add as Maven Project" to manually trigger the identification of the maven project
4. "Edit configuration" before starting the main function(in the class named "MainThread.java"), and enter the following commands in the command line parameters: ./bounce --image ./bouncing_shape-1/src/main/java/org/example/core/sphere_triangles.txt --speed 1 --dir -1, -1, 0.
5. Run the main function, which will read the parameters in the command line and start to achieve the effect of bouncing shape.

Of course, you can also choose other models, just modify the image path in the command line parameters, for example, switch to the torus_triangles.txt file or cube_triangles.txt file