Andreas Grätz wrote:
I have two spaceships. The first is steered by the player, the second should follow the first. How could I calculate if the second ship must turn left or turn right for following the first ship?
Find the dot product between a vector from the second ship to the first ship and a vector pointing to the second ship's left. If it's positive, turn left, if it's negative, turn right. -- Greg -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
