Question Regarding imported Models (Placement and Triangle Pick)

Hi,



I am using the jME physics from cvs.

I have imported some models via collada and want one of them to be placed inside one other, when I do so they get catapulted out of one another.

Iadded the big object to a staticNode and inside this object I attached another staticNode to this I added 2 dynamic Node which have the other objects.

If I start it the staticNode moves out of my object and into eternity :wink:

Anyone got a hint.



Another thing is there some sort of limit regarding the TringlePick?

If I add a relativly small object with a lot of small triangle due to scaling I get this one:



java.lang.NullPointerException

at com.jme.scene.batch.TriangleBatch.findTrianglePick(Unknown Source)

at com.jme.intersection.TrianglePickResults.addPick(Unknown Source)

at com.jme.scene.batch.GeomBatch.findPick(Unknown Source)

at com.jme.scene.Geometry.findPick(Unknown Source)

at com.jme.scene.Node.findPick(Unknown Source)

at com.jme.scene.Node.findPick(Unknown Source)

at com.jme.scene.Node.findPick(Unknown Source)

at com.jme.scene.Node.findPick(Unknown Source)

at com.jmex.physics.util.PhysicsPicker$PickAction.performAction(PhysicsPicker.java:133)

at com.jme.input.ActionTrigger.performAction(Unknown Source)

at com.jme.input.InputHandler.processTriggers(Unknown Source)

at com.jme.input.InputHandler.update(Unknown Source)

at com.jme.input.InputHandler.updateAttachedHandlers(Unknown Source)

at com.jme.input.InputHandler.update(Unknown Source)

at com.jmex.physics.util.SimplePhysicsGame.update(SimplePhysicsGame.java:92)

at com.jme.app.BaseGame.start(Unknown Source)

at proof.PhysicsProof.main(PhysicsProof.java:139)




Your dynamic nodes seem to collide with the static node. This means the static node has a physics collision geometry that fills the space where your dynamic nodes are located. Have a look at you physics collision geometries.



Picking does not operate on physics but on bounding volumes, so this is not related to your other problem. If you need further help there please run you application with a jME version with debug information turned on or provide a testcase, as your output is missing the line numbers.