How to make actor point in direction it is traveling

EastboundEastbound Member, BASIC Posts: 1,074
edited November -1 in Working with GS (Mac)
I have an actor that is moved around using the accelerometer and accelerate rules, but I could not figure out a good way of making its rotation match the direction it is moving.

Is there no way I can constrain the rotation to simply a 'direction' attribute? (though there isn't one)

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Could you create an invisible actor that also gets the accelerometer settings, but some how multiply these settings so that the invisible actor travels beyond the visible actor. Maybe just give this one a higher acceleration number or something. Then use invisible walls to surround the scene that collide with the invisible actor. If you can get it so that this actor tends to travel around the edges of the scene you could put a VectorToAngle behavior in the visible actor and have it point towards the invisible one.
  • EastboundEastbound Member, BASIC Posts: 1,074
    Hmm that's an interesting idea. I could maybe just use vectorToAngle without the invisible actor, and just take the accelerometer into account...

    Anyone else have a suggestion before I tinker around with this idea?
Sign In or Register to comment.