Difference between revisions of "Determining Ground Position"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Mrflippy
imported>JustTim
Line 1: Line 1:
I'm looking for a way to determine the z position of the ground at a given (x,y) location. I was thinking maybe spawning some object that would fall to the ground due to gravity, but how would you know how high to spawn it? And then it would take time to  fall as well.
I'm looking for a way to determine the z position of the ground at a given (x,y) location. I was thinking maybe spawning some object that would fall to the ground due to gravity, but how would you know how high to spawn it? And then it would take time to  fall as well. --MrFlippy
 
Even if you spawn it VERY high, it may collide with another object long before hitting the ground (an house's roof, for example, or a tree...). And, as you said, it will not fall instantly... --Bifmadeinsabbioni
 
I tried to do this by using a spawned object too. it would work, but if you want to move the object on its x and y axis together with an other object it doesn't work anymore, since the physical z movement seems to be terminated when te object is moved by a script function. --[[User:JustTim|JustTim]] 08:13, 9 May 2006 (EDT)


[[Category:Questions]]
[[Category:Questions]]

Revision as of 07:13, 9 May 2006

I'm looking for a way to determine the z position of the ground at a given (x,y) location. I was thinking maybe spawning some object that would fall to the ground due to gravity, but how would you know how high to spawn it? And then it would take time to fall as well. --MrFlippy

Even if you spawn it VERY high, it may collide with another object long before hitting the ground (an house's roof, for example, or a tree...). And, as you said, it will not fall instantly... --Bifmadeinsabbioni

I tried to do this by using a spawned object too. it would work, but if you want to move the object on its x and y axis together with an other object it doesn't work anymore, since the physical z movement seems to be terminated when te object is moved by a script function. --JustTim 08:13, 9 May 2006 (EDT)