I have done the nightly build and updated everything under plugins but I still get this error.
I found a page for JME about using boundingvolumes for collision detection and wanted to test it out with the town.zip and a box, but I am running into trouble when I try to do b.setbound(new BoundingSphere());
It keeps telling me that it cannot find symbol .setbound but I have imported all the imports listed on the page, but still gave same message. I then came across a forumn post about being able to do ctrl + shift + I to import any missing imports, upon doing that it took all of the extra imports out and left only the Boundingsphere import.
I am using a static camera so a boundingspehere would be nest to start with.
What is “b”?
Are you really using “setbound” and not “setBound”?
Sorry I am using it as .setBound I just forgoet to capitilize it when I did the post. I thought I was typing in something wrong, but I even copied and pasted directly from the page and then just changed mesh.setBound(new BoundSphere()); to b.setBound(new BoundSphere()); and still end up with the same thing. I checked again and the second part of .updateBound is also stating it is missing the symbol.
What is “b”?
b is a box geometry that I made that is just the simple blue square from the tutorial. I also tried using BoundBox because my thinking was that maybe the sphere could not contain a box, but I still get the same errors with .setBound or .updateBound stating that symbol can not be found.
“b is a box geometry”… so is it a Box or is it a Geometry?
Can you just post your code please?
I figured out what I was doing wrong, I was using the wrong variable name for when I tried to use .setbound which was causing it to not give the option, but once I used the part from Box box1 = new Box(Vector3f.ZERO, 0.2f, 0.2f, 0.2f) it worked properly. I am sorry for wasting your time.
@danvath said:
I figured out what I was doing wrong, I was using the wrong variable name for when I tried to use .setbound which was causing it to not give the option, but once I used the part from Box box1 = new Box(Vector3f.ZERO, 0.2f, 0.2f, 0.2f) it worked properly. I am sorry for wasting your time.
I figured that was what was wrong but you didn't provide enough information for me to be specific. Next time post the code and you will get an answer much quicker.