TrianglePickResults vs Box = nullPointer

New to jME, but have some experience with Java and with modding games. jME seems quite easy to use, I’m impressed.

I tried taking the OOB code and replacing maggie with a Box. I get a nullPointer in the com.jme.scene.TriMesh.findTrianglePick(Unknown Source) method. I also note that the sum of the picked vertices seems to be a vector with NaNs.

With Maggie it works fine. Doing a search, I find that TrianglePicking is a bit buggy right now, should I just hold off on this avenue for a moment?

you must use updateCollisionTree for the box and set a model bound

Thanks, I’ll give that a try. Searching the forums for updateCollisionTree I see that this issue has been touched on a few times. Sorry for the repeat question. As I get more familiar with jME, i’ll be better at asking the forum search oracle the rght questions.

No worries. :slight_smile: