#### Archived

This topic is now archived and is closed to further replies.

# Question from a beginner

This topic is 6878 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

It really doesn't take up too much of the computers time just to test for a collision. The simple way to do the collision testing would be to give each tile a certain id. Such as 0 if the player can't walk on it, and a 1 if they can.

##### Share on other sites
How to check for collision in a game like Zelda, Chaos Engine etc ? Is every visible object a rectangle and when the player moves it check to see if the rectangles crosses? If the gameplan is a labyrint seen from above with many, many walls it must bee tough to write and demanding for the computer to update.

##### Share on other sites
Collision detection is different depending on how your game is designed. If it is a 2d, or some for of tile based game, than yes use tile IDs.

3D collision detection is a little different because you need to choose how accurate you want to be.

If you have say a person one way is to use a bounding box, which is basicly a box fit right around the person and anything that fits in the box is considered a collision.

Though this collision detection is fast it is not accurate. Say the person has thier arms stretched out and the object colliding was underneath them, you will still get a collision because of the box around the person will catch it. (This is easier to show , than write)

So you have a choice, you can use boinding boxes for each part of a person or a more accurate, polytope.

This is basicly a very simplified version of the objects 3D mesh. You can than use this for collisions with more accuracy.

Gary

1. 1
2. 2
3. 3
4. 4
Rutin
19
5. 5

• 14
• 14
• 9
• 9
• 9
• ### Forum Statistics

• Total Topics
632927
• Total Posts
3009251
• ### Who's Online (See full list)

There are no registered users currently online

×