Collision with actor
Loranzo23
Member Posts: 12
Hello Guys!
In the game i am creating the helicopter is going to need to avoid colliding with the other actors but my problem is that its destroying my character when its not even touching the actor. Its going to be similar to the classic Flash Helicopter game but my character is getting destroyed without any actual contact. Obviously if it touches it is destroying my actor but its far off that my actor is getting destroyed. I know as of now its only rectangle and circle but how can i possibly adjust it so it gets as close as possible to the figure that is going to cause it to be destroyed. Doesn't have to be perfect but close as possible. Thank you guys.
Comments
Make up the helicopter shape from a few rectangles and circles.
And constrain all these shapes to the main actor.
Thank you for the reply.
If you don't mind going into more detail on how i can possibly do this. Thank you.
Will your helicopter be rotating at all - or will it always be upright as it moves around ?
My helicopter slightly rotates up when rising and slightly rotates down when falling. Thanks.
If it's rotating then try this:
http://forums.gamesalad.com/discussion/62202/linkmachine
You just need to link a few objects to your helicopter to form a decent collision shape - and use these objects to detect collisions.