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.

3 Dimensional Chat / 3D car going up hill physics

Author
Message
samqweqwe
10
Years of Service
User Offline
Joined: 7th Apr 2013
Location:
Posted: 7th Apr 2013 17:12
hello,
I am quite new to dark gdk and i am trying to make a rotate when going up a hill. i have successfully done forward and backward using 2 boxes that are in different positions. the first is at the front and the second is at the back. it works by one of the boxes pointing towards the other block and then the car is equal to the angle X and Z.

however, I am stuck by rotating the car to the side. I have tried using arc sin and arc tan to rotate but it doesnt work.



object 3 is the car
object 6 is the box to the left
object 7 is the box to the right

does anyone know how to rotate the car in all directions
thanks in advance

Login to post a reply

Server time is: 2024-03-29 14:56:22
Your offset time is: 2024-03-29 14:56:22