#### Archived

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

# How do I locate the objects in the terrain?

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

## Recommended Posts

How do I locate the objects in the terrain - what I mean is how do I compare the position of an object and where that position is on the terrain, so I can check if the objects touches the ground?

##### Share on other sites
You can use several methods to do this:

1. Tap into GPS.
2. Use the naked eye. Usually, if it looks like an airplane or a flying saucer (etc.), there is a good chance it is not touching the ground, unless it has landed, of course. You could also simply just look for a space between the object and the ground.

##### Share on other sites
I am looking for a a space between the ground and the object, but how do I localize the position of the object on the ground, so I know that I´m checking on the right place?

##### Share on other sites
Find the x + y extents of the flying object so you know the extent of the terrain below that you will be checking.

ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at Check out my web-site

##### Share on other sites
I know that I have to do that and I´ve already tryed. So how do I locate where on the ground the object is, could someone show me some samplecode?

##### Share on other sites
Are you talking about collision detection in 3-D space or what? I didn''t quite understand what you were looking for.... But if it''s collision detection you might want to work your way though your math books... 2-D line intersection is easy... When you know that, just study math for another 4 years and you know it in 3-D too =D

/G

##### Share on other sites
What I want to know is how I know if I´m checking if an object is touching the ground where it is and not anywhere else.

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

• 26
• 20
• 13
• 13
• 17
• ### Forum Statistics

• Total Topics
631700
• Total Posts
3001781
×