Hi.
The question I'm asking already have been asked several times on the forum but no working solution offered anywhere which is a bit frustrating as we are talking about the basics here in a tool supposed to make game development easy.
So what I would like to do is simply fire bullets toward the angle of the bullet not only in one direction but any direction the bullet is facing and I would like to do it by using physics.
In a perfect world, the only thing I supposed to do is:
1. Create bullet
2. Set angle of bullet
3. Apply physics on bullet
4. Apply impulse on bullet toward the angle of bullet
Job done.
But it seems to be not that simple in AppGameKit at least I can't get it to work
My bullets are flying all over the place and spinning around in all possible directions except the one I would like to, none of my attempts was behaving anything like a bullet and I'm completely lost.
Could anyone help me with some ideas, solutions or may even code snippets to setup a bullet in AKG using physics?
I know I could do it without physics by storing all my bullets inside an array and keep calculating the angle of movement with trigonometry and update the x and y position for each bullet manually but I'm really would like to know if it possible to do it with physics in AppGameKit and how because it is supposed to be the easy way and I can't believe it is so difficult in AGK. There must be something I'm missing. Maybe I should set some global force or something, I'm not sure. I have set gravity to 0 but it is just made my bullets floating in space and when I apply any force on the bullets they start spinning and moving all over the place but never straight ahead.
I would appreciate any help.
Thank you