Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Can't access rigidbody commands 'Rigidbody' does not contain a definition for...

$
0
0
I am trying to write this: public void Speedboost(Rigidbody m_Rigidbody) { Vector3 OriginalSpeed = m_Rigidbody.velocity; } I want to access the velocity of the Rigidbody, but it triggers an error that says: 'Rigidbody' does not contain a definition for 'velocity' I can be certain that this command exist, so why isn't this working? I would appreciate any help, thanks in advance! Here's an official unity link to that exact command: https://docs.unity3d.com/ScriptReference/Rigidbody-velocity.html

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>