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.

Dark GDK / Smooth Turns for a vehicle

Author
Message
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 11th Nov 2009 19:29
Is there any code I can use to make smooth turns in a vehicle.

So whenever I want to turn I can do it smoothly like in real life.


Thanks in advance
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Nov 2009 21:12
try curveangle.



Dark Physics makes any hot drink go cold.
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 11th Nov 2009 21:52
Can I use that for DarkGDK cuz it doesn't look like.

I was looking for that command in gdk but couldn't find it.

Thanks for your help again 3DMaster
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 11th Nov 2009 21:59
may need changing to work with gdk commands, as thats how I use it basic.



objectnumber, newmax#, lastmax# may need to be declared.

Dark Physics makes any hot drink go cold.
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 11th Nov 2009 23:34
I don't think you need the "#"'s because they mean the variable is a float in DB (I think).
tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 12th Nov 2009 00:10
BOTB Developer Can you translate what 3dMaster told me that is in DB to DarkGDK so I can be able to use it.

Thannks in advance
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 12th Nov 2009 21:59
The most realistic method would be to move the vehicle using forces rather than directly setting the velocity, then by applying a turning forces at right angles for steering + accelerative or decelerative forces backwards or forwards for movement.

tmd13
15
Years of Service
User Offline
Joined: 16th Sep 2009
Location:
Posted: 12th Nov 2009 22:04
luke810 how can I do that, can you give me an example???

Thanks in advance
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 12th Nov 2009 22:23
I don't really have the time right now to write out an example, but its similar to the autonomous behavior here with the exception of limiting the angle of the turn force based on the maximum turn radius.

Though I suppose it would be much easier to use an alternative method if you don't understand some of the basic physics.

puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 12th Nov 2009 22:31 Edited at: 12th Nov 2009 22:32


Or something like it. EDIT: Ignore the and that was to make the "objectnumber" bold so you'd know to replace it.

Login to post a reply

Server time is: 2024-10-01 16:32:18
Your offset time is: 2024-10-01 16:32:18