How to set bullets to travel in the aimed direction?

specialist_3specialist_3 Member Posts: 121
edited November -1 in Working with GS (Mac)
Hi,

I have set my spacejet to fire laser bullets (using spawn actors), however, the direction of the bullets' travel is always upward and not in the direction the spacejet is pointing at.

The bullets are currently set to spawn at 0 (horizontal) and 25 (vertical). This is fine only so long as the jet is facing upwards as it appears as though the guns are placed at the nose of the jet. But this would not work once the jet is rotated. Can someone please help me on this?

Thanx.

Comments

  • rebumprebump Member Posts: 1,058
    Pretty sure this has been answered before. Use search in the upper left corner (and also use Google search on the site).
  • RHRH Member Posts: 1,079
    What rules do you have on the bullet?

    Do you have the bullet actor set to spawn relative to the shooter or the scene? Do you have the velocity on the bullet actor set to relative to the actor or scene?
  • specialist_3specialist_3 Member Posts: 121
    rebump - i tried the search, didn't get what i was looking for. instead, i went through the asteroid shooter demo which came with GS and managed to figure it out.

    RH - I set both relative to actor. I played around with the "direction" and seems to work fine now. I have yet to understand the difference between relative to actor and scene.
Sign In or Register to comment.