Sign in to follow this  

Not raycast wheels

This topic is 3453 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

Hello everyone I really wonder if there are car games where developers use sincere wheels for cars? I saw many games (and major part is famous well-known games) with raycast wheels. I know, raycast wheels are fast and simple, but there are some artifacts in it. I need to consider all possible ways for our car game and i need to know examples of games with sincere wheels. Do you know any such game? Thanks in advance

Share this post


Link to post
Share on other sites
This doesn't answer your question, but: raycast wheels don't have to be simple (or indeed fast!). You could cast a volume (e.g. sphere or cylinder) instead of using a ray to give you better interaction with the ground (going over kerbs), or multiple rays. You can use the four (for a car) raycasts to generate suspension forces at each wheel, but apply drive forces centrally to the car, or you can apply individual drive/friction forces at each wheel. You can calculate the wheel forces independently (which can result in slipping artefacts) or solve them simultaneously (similar to what you'd do with simultaneous rigid body contacts).

I.e. there's many options about what you do - I'm not sure there are any significant effects that you can't represent with raycast-like wheels, if you put the effort in.

Using separate bodies for the wheels may intuitively seem more realistic, but most physics engines will have a hard time dealing with (a) objects that are rotating very fast, and (b) interactions between objects with large mass differences (compare the wheel to car mass ratio).

Share this post


Link to post
Share on other sites
Quote:
Original post by MrRowl
I.e. there's many options about what you do - I'm not sure there are any significant effects that you can't represent with raycast-like wheels, if you put the effort in.

I think the same. But my boss make the final decisions and he wants to know the _names_ of released games which use sincere wheels - it is just to compare.

Share this post


Link to post
Share on other sites
Something to take into account is that many physics engines have a maximum angular velocity per simulation step, that is too low to simulate racing cars. At least Newton Dynamics and Havok have them, so other open source and commercial engines probably have them too. In a racegame I was working on this meant you couldnt go faster than about 60 MpH at the average simulation framerate (about 60 fps).

Of course there are ways to improve on this such as using bigger wheels for the torque part, or having multiple simulation steps per graphics frame (which doesn't work very well if you're already cpu-bound because of the physics and other parts of the game). Anyway, these methods only give you more problems and inconsistencies.

[Edited by - Tree Penguin on June 29, 2008 11:28:18 AM]

Share this post


Link to post
Share on other sites
Quote:
Original post by Tree Penguin
Something to take into account is that many physics engines have a maximum angular velocity per simulation step, that is too low to simulate racing cars. At least Newton Dynamics and Havok have them


What's your source on that newton has limit for max angular velocity per simulation step? that information is totally new to me, perhaps you can tell me where you got it?

If what you are saying is true, then why does newton have such great multibody vehicle simulation?

An example:
http://newtondynamics.com/forum/viewtopic.php?t=4498 (HIT DEMO #5)

Share this post


Link to post
Share on other sites
Quote:
Original post by Delfi
An example:
http://newtondynamics.com/forum/viewtopic.php?t=4498 (HIT DEMO #5)


The insane fov in that demo makes it difficult to tell the speed limit for those cars (it makes it look faster than it really is). Also, the framerate is quite high, and as the limit is per frame (simulation step), that makes the speed limit higher also. It looks like that demo is limited by it, but it's hard to tell without sourcecode.

Here is a thread about what I mentioned. It seems however, that if you do use Newton's special car joints, the problem is fixed.

Anyway, that thread also states that it will be fixed in the next release, which is possibly out already, so I'll keep my mouth shut ;).

Share this post


Link to post
Share on other sites

This topic is 3453 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this