Preventing actors overlapping

Hi, I have a game where two actors chasing a hero actor. In time, the two actors will catch up the hero actor and its game over. I have a problem here where the two actors overlapping each other when they catching up the hero actor. Is there a way where i can set a distance between the two actors so that they wont overlap? I tried collide behavior but they will bounce each other back. What i want to achieve is they have a little distance between them to prevent overlapping. Can someone give me an insight?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    If you want to continue using the Collide Behavior, just adjust the Bounciness Setting in their Physics Properties so they don't bounce each other so far.

  • ralphbugsralphbugs Member Posts: 39

    The bounciness settings under Physics was set to 0.0 which means its already minimum value right?

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Yes, they should have not been bouncing at all then. Were they maybe bouncing off the player or something else?

    Bounciness needs to be set correctly in both actors that are colliding too.

  • ralphbugsralphbugs Member Posts: 39

    Ah, I see. I forgot to set bounciness in another actor. Thanks Jamie!

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome. :)

Sign In or Register to comment.