Im trying to create TNT in my game in shape of a box. I have seen the BombControl class in JmeTests but dont know how to adjust it because whoever wrote it didnt leave comments to explain. If anyone has any expirience on the mater can you look at the class and explain how to do it.
<cite>@koljo45 said:</cite> Im trying to create TNT in my game in shape of a box. I have seen the BombControl class in JmeTests but dont know how to adjust it because whoever wrote it didnt leave comments to explain. If anyone has any expirience on the mater can you look at the class and explain how to do it.Have you even taken a look at the class yourself?
It looks like it’s just a control that adds a particle emitter to a spatial and does some other basic stuff… if you don’t understand that you really have to read the documentation
You really should try to do more research yourself at least…
Yes I have taken a look and tryed to adjust it, but I just cant. I have read that if you deal with force you have to have physics tick. Im just trying to create a crate which when is moved too mutch explodes. I would be gratefull if you tryed to adjust it, so I can understand what you did. Then I could do it in the future alone.
Did it. Now It works. I have a TNT. Just comment out update and when creating ghost object set box collision shape.
1 Like