Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am creating the project using JMonkeyengine. I only can created the cube and s

ID: 440338 • Letter: I

Question

I am creating the project using JMonkeyengine. I only can created the cube and some wall but I can't see to get the objects inside the cube and makes it move randomly. and also collide and respond to collisions.... Please help!!!!! "Create a Java or C# application that simulates a minimum of 3 spheres moving through a frictionless environment with gravity. The environment should be a confined cube area for the spheres to collide and respond to collisions. The application must display the positions of the spheres in real time. In addition, the 3D vector position of each sphere should be saved once every second for future plotting and simulation replay. The initial position and velocity for each sphere should be random, but constrained, each time the application is run. The camera should be positioned to see the entire cube environment, but it does not have to be adjustable by the user." Code: package jme3test.helloworld; import com.jme3.app.SimpleApplication; import com.jme3.material.Material; import com.jme3.math.ColorRGBA; import com.jme3.math.Vector3f; import com.jme3.scene.Geometry; import com.jme3.scene.Node; import com.jme3.scene.Spatial; import com.jme3.scene.shape.Box; public class Project1_1 extends SimpleApplication { public static void main(String[] args) { jme3test.helloworld.Project1_1 app = new jme3test.helloworld.Project1_1(); app.start(); } public void simpleInitApp() { // create blue cube shape at the location Box box = new Box(new Vector3f(-1f,0f,.5f), .2f, .2f, .2f); Geometry blueBox = new Geometry("Box", box); // create cube geometry from the shape Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); // create a simple material mat1.setColor("Color", ColorRGBA.Blue); // set color of material to blue blueBox.setMaterial(mat1); rootNode.attachChild(blueBox); } }

Explanation / Answer

Good to see you seem to get along with the engine The solution for your problem probably *is* a texture atlas and texture coordinates, if you have trouble with that you should work on that I guess You can