Confirm this..getVelocity()
by Sam Guffey · in Torque Game Engine · 04/26/2004 (2:52 pm) · 10 replies
GetVelocity() call for a vehicle gets the linear velocity of the rigid shape correct?
Is this measured in MS? Meters/sec?
If so then in order to get the MPH of a vehicle we would just need to call getVelocity().len() * 2.2369363 right? Which is the conversion from MS to MPH..
I would rather get MPH based on the angular velocity of the wheel by using wheelRadians/s * wheelRadius and getting the MS in speed. Not sure how this will work out though..
So my main question : how is linVelocity measured?
Is this measured in MS? Meters/sec?
If so then in order to get the MPH of a vehicle we would just need to call getVelocity().len() * 2.2369363 right? Which is the conversion from MS to MPH..
I would rather get MPH based on the angular velocity of the wheel by using wheelRadians/s * wheelRadius and getting the MS in speed. Not sure how this will work out though..
So my main question : how is linVelocity measured?
About the author
#2
04/27/2004 (11:19 am)
It is always best to post the result when you answer your own question, so that others with the same question can use the thread as a reference. Share, if you don't mind. :)
#3
Here is a great place to get info on car physics for games. TGE seems to use alot of this true physics for vehicles but you just have to track down the right vars they use.
04/27/2004 (11:52 am)
GetVelocity() does get the linVelocity of the rigid shape and it does get it in m/s. Each car has wheels and each wheel during motion has angular velocity "wheel->avel", and is measured in radians/s. (radians * wheelRadius * 2.2369) = speedMPHHere is a great place to get info on car physics for games. TGE seems to use alot of this true physics for vehicles but you just have to track down the right vars they use.
#4
Also how is the engineTorque measured? Is it in Newtons?
04/27/2004 (12:36 pm)
My next question is.. In TGE how are the vehicles "mass" measured? In lbs or kg or something else? This is important in getting correct acceleration.. The default "200" seems way to low but increasing this to real car specs [1500 kg || 3300 lbs] bottoms the vehicle out.Also how is the engineTorque measured? Is it in Newtons?
#5
04/27/2004 (2:45 pm)
When you adjusted the mass of your vehicle, did you also adjust the force of your springs? They need to be scaled by roughly the same amount. I have found that higher mass with a higyher spring force does allow for better vehicle handling.
#6
04/28/2004 (1:17 am)
Im not concerned with increasing the mass, I just need to know how it is measured in TGE so I can do the math, as well as engineTorque and its measurment.. If anyone knows please let me know.
#7
04/28/2004 (10:22 pm)
Come on!! Who at GG worked on the vehicles? This is very important for me and Im sure it would be great knowledge for others.
#8
If you like, you may assign arbitrary numerical identifies based on context - for instance, acceleration might be expressed as 45/13*13.
More practically, Torque is generally considered to work in meters, because some of its subsidiary libraries like OpenAL expect their values to be in meters.
04/30/2004 (10:28 am)
Everything in Torque is in dimensionless units.If you like, you may assign arbitrary numerical identifies based on context - for instance, acceleration might be expressed as 45/13*13.
More practically, Torque is generally considered to work in meters, because some of its subsidiary libraries like OpenAL expect their values to be in meters.
#9
engineTorque seems to be in (N)ewtons as it should..
velocity is in m/s
wheel->avel or angular velocity are in Radians.
I have measured acceleration (accel = force / mass) and it matches exactly to the vehicles acceleration. I just cant see what MASS is measured in. A default 200 mass just dont add in with the rest of the vehicles measurments. Or could it be the gravity?
05/01/2004 (10:35 am)
What? From what I see the vehicles are going by some pretty real physics measurments.engineTorque seems to be in (N)ewtons as it should..
velocity is in m/s
wheel->avel or angular velocity are in Radians.
I have measured acceleration (accel = force / mass) and it matches exactly to the vehicles acceleration. I just cant see what MASS is measured in. A default 200 mass just dont add in with the rest of the vehicles measurments. Or could it be the gravity?
#10
So, actually, engineTorque is dimensionless, but happens to act just like a newton because a newton is a unit dimension (unlike, say, foot pounds). I bet if you did some experiments you could get it to work out right for the imperial equivalent, too.
Given that your preference is the metric system, might I suggest using kilograms for mass?
05/01/2004 (12:11 pm)
"newton, abbr. N, unit of force in the mks system of units, which is based on the metric system; it is the force that produces an acceleration of 1 meter per second per second when exerted on a mass of 1 kilogram."So, actually, engineTorque is dimensionless, but happens to act just like a newton because a newton is a unit dimension (unlike, say, foot pounds). I bet if you did some experiments you could get it to work out right for the imperial equivalent, too.
Given that your preference is the metric system, might I suggest using kilograms for mass?
Torque Owner Sam Guffey