Hey guys, math question here...
I'm trying to make it so when the player has his accelerate button down, the spaceship will emit fire particles.
The below code is what I use to generate the particles, x is the spaceships center x point, and the y is the spaceships center y point. (The image was mid handled)
As expected, it generates a stream of fire particles from the center point of the ship. And the ship rotates (it's an astroid clone)
So the problem is:
I want the particles to be on the back of the image( where the engine is ) and to do this would mean some trig math that I'm trying to figure out.
Any help appriciated!
PS. here is the player's ship image(20x20):

The vertice of the concave section of that polygon is where I need the particles to come from
I'm trying to make it so when the player has his accelerate button down, the spaceship will emit fire particles.
The below code is what I use to generate the particles, x is the spaceships center x point, and the y is the spaceships center y point. (The image was mid handled)
If burning EmitParticle(x,y,firepart,10) End If
As expected, it generates a stream of fire particles from the center point of the ship. And the ship rotates (it's an astroid clone)
So the problem is:
I want the particles to be on the back of the image( where the engine is ) and to do this would mean some trig math that I'm trying to figure out.
Any help appriciated!
PS. here is the player's ship image(20x20):

The vertice of the concave section of that polygon is where I need the particles to come from