Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Wed Jun 19, 2019 5:25 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Working on physics
PostPosted: Fri Aug 08, 2008 3:14 pm 
Offline

Joined: Tue Jul 22, 2008 1:59 pm
Posts: 7
Hi,

I downloaded the latest code and am working on making the physics more realistic. Here are some things I am doing.
* Add braking (not just "slow down")
* Keep the car on the ground (make it heavier)
* Non-constant acceleration (shifting gears, torque curves, etc.)
* How to load a different model (truck) instead of car

Can someone tell me where to look/edit these things?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 08, 2008 4:27 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
almost the full ocde of mania drive is in the mania_drice.c file.

And waht do you mean exactly with "brake"? The car breaks already.... you mean a custom break for blocking wheels and so be able to drift?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 08, 2008 7:04 pm 
Offline

Joined: Tue Jul 22, 2008 1:59 pm
Posts: 7
Braking? Instead of subtracting the speed by a constant * joystick_position, I am dividing instead (using different constants of course).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 10, 2008 2:25 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Have a look to the source code.

You can simulate breaking by setting motor speed to 0 and increasing motor power. Like this wheels stop.

Change the mass of the car, but be carrefull tracks are tuned to this car with this physic !

Gears are supported already. To add torque curve you can change motor power based on his velocity according to the curve.

To load a new model (visual) use blender import/export functionnality.
This will change only the aspect of the car. To have a truck you have to adapt physical model to a truck model.

Have a nice day
Ouille


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group