I learn to use collision with simple figures, but when I import my .3ds model (type Node) this become a bit difficult.
I create a StaticPhysicsNode and then attach my model as a child. If I traslate or rotate the PhysicsNode all collision works correctly, but if i move his child (the model) it seems trasparent and I have no collision!..maybe this is normal…
to explain better i have:
Node node;
StaticPhysicsNode staticNode;
"node" take the .3ds model via MaxToJme, and then I have
staticNode.attachChild(node);
staticNode.generatePhysicsGeometry();
in the update method I do something like:
q.fromAngleNormalAxis(FastMath.DEG_TO_RAD*2, new Vector3f(0,0,1.0f) );
staticNode.getLocalRotation().multLocal(q);
The problem is that when I move "node" the LocalRotation is correct, but when I move the staticNode it follows another axis....so can I import directly my model as a StaticPhysicsNode and move it directly?...there's something else??
thank you all! :)