Rotating moving actors

axehammeredaxehammered Member Posts: 12
edited November -1 in Working with GS (Mac)
In my game I have many of the same actor(actor1) spawning inside another actor(actor2) and exploding outwards in different directions. At the moment I'm using one actor and spawning it many times but each one at a different angle in relation to actor2 and this works perfectly. The problem I'm having is I want to rotate these spawning actors but in doing so instead of going straight they move in circles in relation to their rotating.
Is there a way I can have my actor rotate without having to create separate actors for each individual direction? I know this can be done by spawning the actors in relation to the scene but then I would need a different actor for each direction.

Hope this makes sense?

Dean.

Comments

  • ORBZORBZ Member Posts: 1,304
    Two options:

    1) Use particle FX, much lower CPU usage and creates the same effect.

    but if that's not an option for you:

    2) Set the initial velocity of the spawned actor using change velocity, then don't apply any more forces and let inertia take over. Rotation is then possible without altering its trajectory so long as you apply no thrust.
  • axehammeredaxehammered Member Posts: 12
    Excellent, thank you. I will experiment with both and see which one works out best.
  • axehammeredaxehammered Member Posts: 12
    I used velocity instead of move and it worked perfectly. I still have much to learn. Thanks again.
Sign In or Register to comment.