Sparky I have some questions,
I'm thinking of creating some kind of 'car' engine where the player object (car) rotates as the landscape goes up, If you drive up on a hill, that the car rotates in the correct way. I guess it has something to do with this kind of code from your examples:
collide=SC_rayCast(0,oldx#,oldy#,oldz#,x#,y#,z#,0)
if collide>0
rem get the collision point
newx#=SC_getStaticCollisionX()
newy#=SC_getStaticCollisionY()
newz#=SC_getStaticCollisionZ()
rem get collision normal
normx#=SC_getCollisionNormalX()
normy#=SC_getCollisionNormalY()
normz#=SC_getCollisionNormalZ()
rem position and point a marker in the right direction
position object 501,newx#+normx#/100.0,newy#+normy#/100.0,newz#+normz#/100.0
point object 501,newx#+normx#,newy#+normy#,newz#+normz#
endif
But using this method,I am unable to change the car's Y angle > which direction the car is going. I have really no idea how i can do this in a diffrent way. Maybe you can help me
?