Hey there.
I'm all new on the forum and just discovered Box2D. I Decided to give it a try for my Shoot'em up project.
I read the user manual, but didn't figure out how I could use the collision module alone, as my objects already move with their own behavior. I'm particularly interested in the use of :
- contact manifold to determine where the point of impact occured and thus emit particules from the right position,
- Time of impact, to prevent tunneling between enemis and player shots
- Ray casting, for non-perforing lasers
- DynamicTree for performance issue, due to the use of thousand of collidables objects (such as enemy bullets.)
Here is my question :
What are the class I will have to use the previously said purposes?
Do I need a b2World for that?
Can I attach multiple shapes to one of my objects without using a b2Body? If yes, will the performances be notably slowed compared to using b2Body?
I'm all new on the forum and just discovered Box2D. I Decided to give it a try for my Shoot'em up project.
I read the user manual, but didn't figure out how I could use the collision module alone, as my objects already move with their own behavior. I'm particularly interested in the use of :
- contact manifold to determine where the point of impact occured and thus emit particules from the right position,
- Time of impact, to prevent tunneling between enemis and player shots
- Ray casting, for non-perforing lasers
- DynamicTree for performance issue, due to the use of thousand of collidables objects (such as enemy bullets.)
Here is my question :
What are the class I will have to use the previously said purposes?
Do I need a b2World for that?
Can I attach multiple shapes to one of my objects without using a b2Body? If yes, will the performances be notably slowed compared to using b2Body?