3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2] 3 4 5

Author Topic: Car object for ODE: faster, smoother and NO MORE BENDING WHEELS!  (Read 12645 times)

« Reply #15 on: March 21, 2010, 02:45:57 PM »
Cool :) Nice stuff indeed..!
« Reply #16 on: March 21, 2010, 05:02:52 PM »
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.
« Last Edit: March 21, 2010, 06:24:02 PM by Rush3Fan »
« Reply #17 on: March 21, 2010, 07:21:53 PM »
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.
« Reply #18 on: March 21, 2010, 08:09:57 PM »
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
Code: [Select]
wheelspin+=IN_0*360/(0.732*(3.14159265*75));0.732 is the wheel diameter
IN_0 is speed in m/sec
« Last Edit: March 21, 2010, 08:12:32 PM by Rush3Fan »
« Reply #19 on: March 21, 2010, 08:20:45 PM »
« Reply #20 on: March 21, 2010, 08:24:05 PM »
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.
« Reply #21 on: March 21, 2010, 10:33:30 PM »
Haha.. Your way ahead of me on that one.
Quote
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)?
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.
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. :D

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? ;D


« Reply #22 on: March 22, 2010, 11:10:04 AM »
 8) mine is a Mustang that I have the avatar.
« Reply #23 on: March 22, 2010, 01:45:26 PM »
Alright Here it is. ;D
« Reply #24 on: March 22, 2010, 02:21:20 PM »
ooo :o that fast but the controls? ;D
« Reply #25 on: March 22, 2010, 02:52:10 PM »
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 ?
"You are what you eat" - Tiny Tim
« Reply #26 on: March 22, 2010, 03:23:03 PM »
awsome!! ;)
3Drad Version: 6.51, and 7.11

System Specs:
MS Windows 7 Home Premium 64-bit
AMD Athlon Neo X2 Dual Core Processor L335, 4.0GB RAM
ATI Radeon HD 3200 Graphics
250 MB Hardrive
HP Pavillion dm3 Laptop

Total Donation Amount:$24

Location: Edmonton, Alberta

Email: [email protected]
« Reply #27 on: March 22, 2010, 06:39:52 PM »
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?
« Reply #28 on: March 22, 2010, 06:42:40 PM »
6.41 Just downloaded it 3 days ago
"You are what you eat" - Tiny Tim
« Reply #29 on: March 22, 2010, 07:36:16 PM »
hmm doesnt work for me eather  ???  :'(  :-\
Pages: 1 [2] 3 4 5