Hello!
Now it’s time to play with particles n_n
Basic, but first decent result:
Yay! Lovely particles n_n
Ok, now we can suppose this post is related to a question
Look at the “fountain” from behind:
Woa. Water from chernobyl, you can see it through walls…
I thought all I needed was a bounding box:
Box wallBox = new Box("wall", new Vector3f(), new Vector3f(0.5f, 2,
0.5f));
StaticPhysicsNode wall = getPhysicsSpace().createStaticNode();
wall.attachChild(wallBox);
wall.generatePhysicsGeometry();
wall.setModelBound(new BoundingBox());
wall.updateModelBound();
The same has been made for the particle system:
particles.setModelBound(new BoundingBox());
particles.updateModelBound();
-> Now I feel ModelBounds are not meant to that kind of end... they're for picking purpose so?
Not yet feeling easy with rendering, I felt this would perhaps help:
wall.setRenderQueueMode(Renderer.QUEUE_OPAQUE);
particles.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT);
but no, it doesn't :(
Hmm, please help before it starts looking like a Sorcerer's Apprentice clone, jME version ;)
Thanks!