[Game Engine] Enemy Collisions

The collider capsule makes geometry solid meaning they will bump into other solid objects.

The collider capsule should not mesh over the exact geometry of the Tank as this will mean the processor will have to work extra hard plotting the coordinates on each spawning enemy, this will result in low frame rates.

To optimise the game for high performance a capsule collider will be used so the Tank model is recognised as a solid object. To make the game run even smother and to prevent enemies not being able to go through towers the capsule here has been made smaller than the Tank’s geometry. This means the geometry outside the green collider will not be solid. These areas will go through other geometry such as towers or other Tanks, it will hardly be noticeable and means the enemies will not get stuck in between towers or other enemies. This will prevent the Tank’s barrels and antenna from getting stuck.

3rd Person games make their colliders smaller for this very reason, why do you think your avatar’s arms or shoulders can go through walls?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s