Question about the first 2 tutorials

Hello, I recently discovered JME and I am very excited about it, I

just started the tutorials and saw something that confused me a bit…



In the second tutorial (Hello Node), there are these lines:

“Understanding the Code



What happens in the code snippet? You use the simpleInitApp() method

that was introduced in the first tutorial to initialize the scene.



You create the first box Geometry.

Create a Box shape with a radius of (1,1,1), that makes the box 2x2x2

world units big.”



Where in the first (Hello JME3) it says that:

“Box b = new Box(Vector3f.ZERO, 1, 1, 1); // create a 1x1x1 box shape

at the origin”



I think you might like to change the size of the example in the second

tutorial…





Keep up the good work, can’t wait to get to know your engine better

and to see how the JME3 stable release is going to be.



thank you very much, Orestes!

2 Likes

Thanks, I updated the wiki. For future reference you can also do this at the top of the page. Wiki → Edit this page

Ok, thank you I 'll have it mind for now on, sorry …

So the right is that



“Box box1 = new Box( Vector3f.ZERO, 1,1,1);”



Creates a 2x2x2 cube, not a 1x1x1, right??

http://hub.jmonkeyengine.org/javadoc/com/jme3/scene/shape/Box.html#Box(com.jme3.math.Vector3f,%20float,%20float,%20float)

thank you pspeed…

That explains things and answers my question, thank you