Collision with actor

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

  • SocksSocks London, UK.Member Posts: 12,822

    Make up the helicopter shape from a few rectangles and circles.

    And constrain all these shapes to the main actor.

  • Loranzo23Loranzo23 Member Posts: 12

    Thank you for the reply.

    If you don't mind going into more detail on how i can possibly do this. Thank you.

    @Socks said:
    Make up the helicopter shape from a few rectangles and circles.

    And constrain all these shapes to the main actor.

  • SocksSocks London, UK.Member Posts: 12,822

    @Loranzo23 said:
    Thank you for the reply.

    If you don't mind going into more detail on how i can possibly do this.

    Will your helicopter be rotating at all - or will it always be upright as it moves around ?

  • Loranzo23Loranzo23 Member Posts: 12
    edited June 2014

    @Socks said:
    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.

  • SocksSocks London, UK.Member Posts: 12,822
    edited June 2014

    @Loranzo23 said:
    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.

Sign In or Register to comment.