Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Jan 31, 2010 9:19 am 
Offline

Joined: Tue Dec 25, 2007 1:06 pm
Posts: 315
WHAT'S THIS?

This is a demo about vehicles without raycasting.


IMPLEMENTATION NOTES:

I used a btHinge2Constraint for the wheels, but I disabled the (vertical) suspension spring, because I couldn't find a good setting for it, and I replaced it with a vertical translational motor.
Thus now the suspension model is extremely simple, and raycast vehicles outperform this kind of vehicles easily.

Despite of this, I released this demo because:
1) There was no demo about it.
2) It can still be very useful for modelling very simple vehicles (e.g. toy vehicles).
3) Some particular kind of vehicles (such as trains) can probably be done better with this approach.
4) I've added a bunch of wheel collision shapes that can be used for other purposes too (e.g. in raycast vehicles with convex cast or just as collision shapes for wheel collision detection).


KEYS:

CAMERA:
-------
HOME - change camera view
PAGE_UP / PAGE_DOWN - change camera distance

VEHICLES:
---------
END - change vehicle
ARROW KEYS - drive vehicle

GLOBAL INPUT SPEED:
--------------------
F1 / F2 - decrease / increase input speed to adjust it for your PC power.

All keys must be pressed while the openGL window has focus.


PROBLEM:

The debug drawer doesn't seem to display (at least) one of my wheel collision shapes in a decent way.
No matter, I'm going to post a raytrace pic to show it better soon...


Hope you like it and find it useful.


Attachments:
Hinge2VehicleDemo.7z [249.03 KiB]
Downloaded 497 times
Top
 Profile  
 
PostPosted: Sun Jan 31, 2010 9:25 am 
Offline

Joined: Tue Dec 25, 2007 1:06 pm
Posts: 315
Here is a pic of the demo in action:
Attachment:
HingeVehiclesDemo.JPG
HingeVehiclesDemo.JPG [ 16.68 KiB | Viewed 2103 times ]


And this is a raytrace screenshot of the most complex wheel collision shape included in the demo (I named it btWheelShape AFAIR), added to show it better:
Attachment:
wheelShape2.JPG
wheelShape2.JPG [ 9.63 KiB | Viewed 2103 times ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group