I was fiddling around with the physics tutorials and got past most of them. Wanting to change something (to gain some hands-on experience) I tried adding a Cylinder and have it rolling down the slope i made (as a floor as detailed in the tutorials) but it keeps coming back with and error I cant get past.
DynamicPhysicsNode whee = getPhysicsSpace().createDynamicNode();
final Cylinder cyl = new Cylinder( "cyl", 16, 8, 1.0f, 1.0f);
whee.getLocalTranslation().set( 0, 8, 12.0f );
and the error it returns:
java.lang.IllegalStateException: no collision geometries have been added to this node yet - cannot compute mass! :?
This is probably a real noob question (but we all gotta start somewhere right?) - i tried searching the forums but the only things I found were old posts about some problems with Cylinders?
In the end I want to make the cylinder the wheels of a car -- is this my best approach?
Thanks in advance for any answers :)