Hi All,
I´m having trouble getting CylinderCollisionShape to work.
I thought it was an apropriate collision shape to add to trees like this
[java]CylinderCollisionShape treeShape = new CylinderCollisionShape(new Vector3f(5f, 15f, 5f), 1);
RigidBodyControl treeBody = new RigidBodyControl(treeShape, 0);
tree.addControl(treeBody);
bulletAppState.getPhysicsSpace().add(tree);[/java]
but the collision shape does not overlap with the trunk of the tree (but apparently a bit in front of it)… the problem i think, is that I don´t now how to deal with halfExtends or the axis… is there some more information about how to do this properly?
thanks