Cool Nice stuff indeed..!
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - User-created Sample Projects, Scripts, Tutorials >
- Car object for ODE: faster, smoother and NO MORE BENDING WHEELS!
Author Topic: Car object for ODE: faster, smoother and NO MORE BENDING WHEELS! (Read 12645 times)
Good news:
No frame by frame animation will be used to spin the wheels.
Bad news:
I'm now trying to calculate how fast the wheels spin but, how in the world can I tell when the car is going backwards?
Oh well.. I think I will release an early version that does not drive backwards because I am out of time for this week.
No frame by frame animation will be used to spin the wheels.
Bad news:
I'm now trying to calculate how fast the wheels spin but, how in the world can I tell when the car is going backwards?
Oh well.. I think I will release an early version that does not drive backwards because I am out of time for this week.
Read the car's orientation and position between two known time intervals, such as in a script running at 60 fps. So you can read the info 60 times per second.
Is that to calculate the wheel spin or whether the car is moving backwards? Currently, the skinmesh wheels spin x amount of degrees every script loop. The problem is how to make x negative for when the car starts moving backwards.
The code works as follows
IN_0 is speed in m/sec
The code works as follows
Code: [Select]
wheelspin+=IN_0*360/(0.732*(3.14159265*75));
0.732 is the wheel diameterIN_0 is speed in m/sec
Oh haha, looky what I found!
http://www.3drad.com/forum/index.php?topic=2388.0
http://www.3drad.com/forum/index.php?topic=2388.0
to check if car is moving backwards.
Also, how do you deal with -
1. Wheelspin caused by traction loss through excess power applied?
2. Wheels decelerating when off the ground and no power applied (eg car ends up on roof, wheels remain spinning but slow down until still, or when jumping)?
3. Tight turns causing differential effect so inner wheel turns slower than the outer one?
Actually, I just thought - why not just base your wheel speed on the transmission and rpm, just like in a real car. Then you know from the gear you are in whether you are going forwards or backwards, and the wheel speed can be calculated based on your gear ratios.
Also, how do you deal with -
1. Wheelspin caused by traction loss through excess power applied?
2. Wheels decelerating when off the ground and no power applied (eg car ends up on roof, wheels remain spinning but slow down until still, or when jumping)?
3. Tight turns causing differential effect so inner wheel turns slower than the outer one?
Actually, I just thought - why not just base your wheel speed on the transmission and rpm, just like in a real car. Then you know from the gear you are in whether you are going forwards or backwards, and the wheel speed can be calculated based on your gear ratios.
Haha.. Your way ahead of me on that one.
But after I release this tomorrow, I would love to see some mods and changes done to it.
Right now the template is a muscle car. The question is what will your car be?
Quote
1. Wheelspin caused by traction loss through excess power applied?For the transmission: I'm no car mechanic, but an engine & transmission would be a great addition to this car object. There's a special script dedicated to throttle which is super simple right now. I'll release it so you or whoever wants to can play around with that.
2. Wheels decelerating when off the ground and no power applied (eg car ends up on roof, wheels remain spinning but slow down until still, or when jumping)?
Quote
3. Tight turns causing differential effect so inner wheel turns slower than the outer one?Yes. The car includes a fixed joint that locks the rear suspension together as if there were a solid axle joining the two wheels together. The two wheels each use an event on contact so that when one wheel lifts off the ground during a sharp turn, it stops the force object on that particular wheel, therefore, creating sort of a differential effect. It really changed everything.
But after I release this tomorrow, I would love to see some mods and changes done to it.
Right now the template is a muscle car. The question is what will your car be?
Hi Rush,
I'm a noob as you can see. I've put all the files in the right places but nothing works when I load the project. Just a black screen ?
I'm a noob as you can see. I've put all the files in the right places but nothing works when I load the project. Just a black screen ?
Quote
I'm a noob as you can see. I've put all the files in the right places but nothing works when I load the project. Just a black screen ?Hmm Ok, It works for everyone else right? What version of 3drad are you using?
Quote
that fast but the controls?What? How can I improve them?