Answers for "How do I obtain the local velocity of a Rigid body on one axis?"http://answers.unity.com/questions/32551/how-do-i-obtain-the-local-velocity-of-a-rigid-body.html
The latest answers for the question "How do I obtain the local velocity of a Rigid body on one axis?"Answer by Jesse Andershttp://answers.unity.com/answers/32577/view.html
<p>Try (untested):</p>
<pre><code>float xVel = transform.InverseTransformDirection(rigidbody.velocity).x;
</code></pre>Tue, 02 Nov 2010 15:59:42 GMTJesse AndersAnswer by Atnas1010http://answers.unity.com/answers/32561/view.html
<p>Is this what you are looking for?</p>
<p>(transform.rotation * rigidbody.velocity).x</p>Tue, 02 Nov 2010 14:19:06 GMTAtnas1010Answer by e.bonnevillehttp://answers.unity.com/answers/32556/view.html
<p>Use <code>rigidbody.velocity.x</code>. Is that what you're looking for?</p>Tue, 02 Nov 2010 13:40:26 GMTe.bonneville