ODE car sample

Return to Code Snippets

ODE car sample

Postby ninth » Thu Feb 12, 2009 5:40 am

Sorry for comments in russian, but if needed, i can try to translate it

http://panda3d.org.ru/load/0-0-0-10-20

----------------------------------------------
New version with fake moving forward:

http://panda3d.org.ru/load/0-0-0-14-20
Last edited by ninth on Sat Feb 21, 2009 5:54 pm, edited 1 time in total.
ninth
 
Posts: 352
Joined: Fri Jan 23, 2009 9:06 am
Location: Russia

Postby rdb » Thu Feb 12, 2009 10:13 am

Neat example, thanks for sharing!
I prefer e-mail over PM
rdb
 
Posts: 8543
Joined: Mon Dec 04, 2006 5:58 am
Location: Netherlands

Postby ZeroByte » Thu Feb 12, 2009 10:20 am

Nice! I'll look into the code when I've got more time. I've been trying to do an ODE car.
User avatar
ZeroByte
 
Posts: 308
Joined: Wed Feb 28, 2007 7:10 am

Postby Hypnos » Fri Feb 13, 2009 4:16 pm

hi ninth,

yes indeed a great sample, it motivated me to work on it and i have been able to improve stability with faster speeds. i have put together a updated version (which is worse commented) but gives some hints how to add roads etc.

download it here: http://public.nouser.org/~rspoerri/Development/python/panda3d/projects/ode_car/10_ODE_car_stable.tar.bz2

btw: it would be great if you'd translate the comments.
Hypnos
 
Posts: 585
Joined: Sat Sep 11, 2004 8:07 am
Location: Zürich, Switzerland

Postby ninth » Fri Feb 13, 2009 7:17 pm

It's really more stable! :)
I didn't know about FiniteRotation routine )
But why you use sphere geometry, instead of cyllinder? With sphere it behaves strange, when i release acceleration and try to turn. IMHO, with cyllinder it more realistic.

And about translation - ok, but i do not think that it is necessary to you )))
ninth
 
Posts: 352
Joined: Fri Jan 23, 2009 9:06 am
Location: Russia

Postby ninth » Tue Feb 17, 2009 6:37 am

New version :)

http://panda3d.org.ru/load/0-0-0-14-20

I try to use fake method for moving the car forward. Now it like a jet engine.
I apply force directly to a body of the car, and it look more stable and realistic (especially on the high speed), in spite of the fact that it false.
Moving backward remains former.
Some cosmetic changes are made.
The track is added.
---------------------------
And i made double comments - in Russian and in English
ninth
 
Posts: 352
Joined: Fri Jan 23, 2009 9:06 am
Location: Russia


Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 0 guests