Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Position object at ground height of object function for DBP.

Author
Message
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 29th Sep 2004 19:34 Edited at: 29th Sep 2004 19:46
Hi. Been up all night, and for some reason thought I'd make this.

What it does, is it gets the ground height of an object based on the position of the other object that you want to place, and positions it at the found ground height.

One advantage over a matrix though, is that it looks for the ground height from the position of the object that you want to place, allowing for the ground object, to have many different levels.

It also positions the object considering its size, so the base will always be on the ground, and not the objects centre.

I'm afraid I'm too tired to add comments to it, but its all pretty straight forward.



Now, time for some coffee.

Absent.

Login to post a reply

Server time is: 2025-05-12 02:21:09
Your offset time is: 2025-05-12 02:21:09