x


My enemies stack!

I am having an issue with the enemies in my game. They stack on top of each other when they collide and I have tried different tactics tat logically would keep them separated when they collided. For the enemies I am using rigid body and I am treating them as var transfor. For collision we are using colliders.
Can anyone help me figure out the best way to approach this?

more ▼

asked May 30 '12 at 02:05 PM

mmangual83 gravatar image

mmangual83
1 2 2 6

I think you are going to have to describe a whole lot more details than you have currently provided. Are they rigid body based or are you moving manually? Are you using colliders and triggers?

May 30 '12 at 02:13 PM kolban

I updated it with the newest details. Hope this helps

May 30 '12 at 02:27 PM mmangual83

Are they using capsule colliders? The rounded bottoms will naturally "climb" small objects, which is what you want -- until they start climbing other enemies.

As a test, make them a lot taller. In practice, the problem stops for me when the code improves. At some point you'll say "if I ram a guy, stop grinding into him, and try to go around."

May 30 '12 at 05:36 PM Owen Reynolds

Are the enemies defined as kinematic in their Rigidbody definitions?

May 30 '12 at 07:05 PM kolban
(comments are locked)
10|3000 characters needed characters left

0 answers: sort newest
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2483

asked: May 30 '12 at 02:05 PM

Seen: 247 times

Last Updated: May 30 '12 at 07:05 PM