tilting

Blitz3D Forums/Blitz3D Beginners Area/tilting

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Assuming you're turning the model using turnentity you could try something like this (not tested I'm afraid but should work) ...

You may have to adjust some of the values but make sure the ramp and ground are pickable.

{code}
unused = LinePick ( EntityX(model,True),EntityY(model,True)+10,EntityZ(model,True),0,-20,0,.2 )
y#=PickedY()
TranslateEntity model,0,y-EntityY(model)+.1,0
nx#=PickedNX():ny#=PickedNY():nz#=PickedNZ()
AlignToVector model,nx,ny,nz,2,.25
{code/}