IonicWind Software

Aurora Compiler => 3D Graphics => Topic started by: kryton9 on September 10, 2006, 02:22:38 AM

Title: ground height
Post by: kryton9 on September 10, 2006, 02:22:38 AM
Is there a way to get the ground height from a Landscape?

Or is there a way to return the position(location) of a collision, without having to actualy move a hidden object to collide and gets its position?

making good progress on the FPS type control and would like to add this feature next.
Title: Re: ground height
Post by: J B Wood (Zumwalt) on September 10, 2006, 06:56:41 AM
That might have to wait until Newton wrapper is done.
The way I get around this, is to just check collision and move the colliding mesh "up" when it collides with the terrain, otherwise, I move the mesh "down" until it collides.
The downfall to this is if the mesh "falls off" the terrain, you have to compinsate for this and reset the mesh.
Look at my tank game and the generic gravity class.
Title: Re: ground height
Post by: Ionic Wind Support Team on September 10, 2006, 09:08:04 AM
I have a method in the engine that does this.  I'll have it exported for the next update.
Title: Re: ground height
Post by: kryton9 on September 10, 2006, 11:39:55 AM
Z, I looked and used your code, but with the camera, it rotates it for some reason. So I need to get the ground height and adjust the camera, was going to use a hidden object to test for a collision and then set the camera, but since there is a method will wait for the next release.
Title: Re: ground height
Post by: Ionic Wind Support Team on September 10, 2006, 11:43:39 AM
However it only works with the landscape object itself.
Title: Re: ground height
Post by: kryton9 on September 10, 2006, 11:56:43 AM
Ok thanks Paul, will write a small routine then and not wait. Thanks.
Title: Re: ground height
Post by: J B Wood (Zumwalt) on September 10, 2006, 01:36:57 PM
I can't wait for the documentation that that object to be further enriched so I can understand what it requires for each variable.