From what I understand you can access the speed value of a rigidbody by typing: rigidbody.velocity
for some reason it gives me the error: 'Rigidbody' does not contain a definition for 'velocity'
(attached).
What am I doing wrong? I also attached the entire script in case there could be a definition problem.
![alt text][1]
[1]: /storage/temp/98796-errorscript.png
↧
Can't access the velocity of a rigidbody: 'Rigidbody' does not contain a definition for 'velocity'
↧