Axles in vehicle?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Axles in vehicle?

Postby pHySiQuE » Sat Oct 11, 2014 2:55 pm

What exactly does the AddAxle() command do? Why do vehicles need an axle specified? Does this make the right and left tire move in unison? Wouldn't the steering wheels rotate independently and not use an axle?
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: Axles in vehicle?

Postby Julio Jerez » Sat Oct 11, 2014 3:43 pm

axle define how the differential ratio is distribute to each tire. They are precisely so that the tires do not move in unison when they do not need to, when a vehicle is turning the torque delivered to the tires must change by certain amount. this value is given by an identity that relate the input torque, the instant power and the angular velocity of each tire. http://web.mit.edu/2.972/www/reports/differential/differential.html
The Axle class implements this identity

They are an important part of the vehicle implementation.
a rear wheel drive car will have one differential that plug the rear wheel to the engine,
and four wheel drive needs three differential, on ether connect the engine tow the front and rear differential and the rear and front differential, and multiply tire vehicle need a mutidifrental.
and a Track vehicle needs a skid differential.

not using differential to distribute the engine torque to the tire, is the equivalent to calculate ration force with out contact joints.

are you having problem with that?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Axles in vehicle?

Postby AntonSynytsia » Sat Oct 11, 2014 5:24 pm

Including, when it comes to steering, the inner front wheel steers at the greater angle than the outer front wheel to avoid scrub. I don't know if this is implemented into the vehicle class though.
steering concept.png
steering concept.png (33.75 KiB) Viewed 3161 times
Last edited by AntonSynytsia on Sat Oct 11, 2014 5:47 pm, edited 1 time in total.
AntonSynytsia
 
Posts: 193
Joined: Sat Dec 28, 2013 6:36 pm

Re: Axles in vehicle?

Postby Sweenie » Sat Oct 11, 2014 5:46 pm

AntonSynytsia wrote:Including, when it comes to steering, the inner front wheel steers at the greater angle than the outer front wheel to avoid scrub. I don't know if this is implemented into the vehicle class though.


Ackermann steering
http://en.m.wikipedia.org/wiki/Ackerman ... g_geometry

Tried it some years ago in my vehicle implementation and it made the vehicle maintain more of it's velocity while turning, mostly noticeable at lower velocities.
Sweenie
 
Posts: 503
Joined: Mon Jan 24, 2005 7:59 am
Location: Sweden

Re: Axles in vehicle?

Postby Julio Jerez » Sat Oct 11, 2014 5:54 pm

Sweenie wrote:Tried it some years ago in my vehicle implementation and it made the vehicle maintain more of it's velocity while turning, mostly noticeable at lower velocities.

yes that is precisely what is does, and is is full supported in the engine.

Code: Select all
void CalculateAkermanParameters (
const CustomVehicleControllerBodyStateTire* const rearLeftTire, const CustomVehicleControllerBodyStateTire* const rearRightTire,
const CustomVehicleControllerBodyStateTire* const frontLeftTire,
const CustomVehicleControllerBodyStateTire* const frontRightTire);


after the frond a rear wheel are set you call that function of the steering compopnets

Code: Select all
      CustomVehicleControllerComponentSteering* const steering = new CustomVehicleControllerComponentSteering (m_controller, VIPER_TIRE_STEER_ANGLE * 3.141592f / 180.0f);
      steering->AddSteeringTire(leftFrontTire);
      steering->AddSteeringTire(rightFrontTire);
      steering->CalculateAkermanParameters (leftRearTire, rightRearTire, leftFrontTire, rightFrontTire);


it is the steering that makes a the differential distribute torque different to each tire, but that's not the only reason.
The vehicle is not a naïve implementation, it is in fact quite sophisticated for a Real time engine, and the best of all is that It is possible to ass more realism because it is a full articulate body.
This is no the typical ray cast car you see in commercial physics library.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Axles in vehicle?

Postby AntonSynytsia » Sun Oct 12, 2014 12:05 am

That's awesome!
AntonSynytsia
 
Posts: 193
Joined: Sat Dec 28, 2013 6:36 pm

Re: Axles in vehicle?

Postby manny » Sun Oct 12, 2014 1:02 pm

That is really awesome. Topic answered, topic locked :)
http://www.instaLOD.io - InstaLOD - State of the art 3D optimization
manny
Site Admin
Site Admin
 
Posts: 131
Joined: Tue Feb 11, 2014 6:49 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron