I recently started using jMonkey and am trying to just create a simple vertically scrolling shooter game to understand the mechanics better. I have a particle effect that runs perfectly as long as I attach it to the rootNode. As soon as I attach it to my spatial representing the player ship, it is no more visible on the screen. Am I missing something? Sorry if the question was asked earlier already. I did search for it but could find nothing like it.
it should work.
- do you call updateRenderstate() after attaching the node to the player?
- does your particle node have a BoundingBox() set ?
Also don't forget calling updateGeometricState() with valid tpf on every user rootNode.