Object rotate according to terrain

Blitz3D Forums/Blitz3D Programming/Object rotate according to terrain

Zach3D(Posted 2006) [#1]
Is there any simple way to rotate an object depending on if its on a hill or ramp on a terrain.
Like a bike riding up a hill rotates, or a sled going down a hill.


octothorpe(Posted 2006) [#2]
LinePick down, align to the normal.


Zach3D(Posted 2006) [#3]
could you show me an example?..


VIP3R(Posted 2006) [#4]
Take a look at the 'mak/driver' demo in the Blitz3D samples folder.


D4NM4N(Posted 2006) [#5]
you can also use aligntovector command using the collisionnx(),ny,nz functions