get actor's current speed and direction

geoffygeoffy Member Posts: 13
edited November -1 in Working with GS (Mac)
Sorry if this has been asked before but I need to store and actors speed and the direction its moving in in a global attribute. Is that doable?

Comments

  • geoffygeoffy Member Posts: 13
    Thanks for that. Any tips on how to calculate the current direction the actor is moving in from those attributes you listed above?
  • geoffygeoffy Member Posts: 13
    Ok sorry I should have explained more. I have an actor that can rotate 360 degrees and then jump in any particular direction. When the actor jumps and then colides with another actor (different actor) i want the actor it has just collided with to move in the same direction the first actor is travelling in. I'm sure its pretty simple and I'm probably over-thinking it, but I'd appreciate any help you can provide. Cheers.
  • geoffygeoffy Member Posts: 13
    yeah, but the speed will always be the same so thats not an issue atm.
  • geoffygeoffy Member Posts: 13
    I mean the speed actor 1 is travelling at is always the same.
  • geoffygeoffy Member Posts: 13
    I'll try and explain it and if that fails I'll send it to you to take a look if thats cool. Basically actor 1 gets clicked and then moves towards actor 2 (which is spinning in a fixed position). Actor 1 collides with actor 2 and then moves to the center of actor 2, then stops moving and begins spinning with actor 2. I then need both actors to continue travelling in the direction that actor 1 was travelling in, and to gradually slow down. There is no gravity in the scene. It's like ur looking down on the scene from above, so i don't think gravity will work in this type of scene. Hope that makes sense. Just fyi, I've got everything working up until the point of both actors moving together.
  • geoffygeoffy Member Posts: 13
    Thanks mate, that seems to work. Like u said a bit of tweaking but I'm on the right track now. Cheers
  • hackmodfordhackmodford Member Posts: 48
    I really wish that actors had an attribute called direction that would simply give the 0-360 degree equivelant of where they are going. I also wish that there was a simple attribute called speed that would give you the actors speed instead of the x and y velocities... oh well ;)
Sign In or Register to comment.