Jump to content
  • Advertisement
Sign in to follow this  
Mehdi_H

ODE car simulation problem

This topic is 3616 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there I'm trying to simulate a car using ODE physics library , and I was successful somehow. However there is some problems that I can't solve , Hope you can help me with them: 1- How can I predict a physical action with ODE. for example if my car is going with the speed of 100 mph , how long(time) it takes to collide with the wall in front. this is important for my AI to adjust the speed when it go to the walls or turning around a corner. with this prediction I can tell the car when to break to not hit the wall or turn around the corner correctly. 2- My car is composed of 5 geoms & boddies. a car-body(cube) & 4 wheels that they connected to the car-body with hinge2 joints. I use the code below for driving the car: dJointSetHinge2Param ( wheelJoints , dParamVel2 , desiredSpeed ); dJointSetHinge2Param ( wheelJoints , dParamFMax2 , torque ); but me car never get to the desired-Speed! it always increase speed to the desiredSpeed/2.5 ! Isn't it strange? I don't know where I'm wrong. 3- Is it better for the wheels to be spherical or cylindrical ? 4- Do you know a Working car code with ODE on the net. thank you

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Mehdi_H
4- Do you know a Working car code with ODE on the net.


hplus0603's Raycar demo is the unofficial/official reference for doing car simulations with ODE, it uses rays, not spheres or cylinders.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!