When I’m typing Rigidbody.Veloity to get my current Velocity. It tells me that Rigidbody don’t have a Definition for Velocity and that no extension had been found. He tells me that that could happened course there is missing one using-Direktive or one Assemblyreference. This Problem does only exist in Unity 6000.0.24f1(this is the version im currently using). I’m aslo using Visual Studio.
I did a bit of research but I couldn’t find anything. There are methods like LinearVelocity but I didn’t find anithyng abaout there either. Does someone know this problem an a soloution?
When I’m typing Rigidbody.Veloity to get my current Velocity. It tells me that Rigidbody don’t have a Definition for Velocity and that no extension had been found. He tells me that that could happened course there is missing one using-Direktive or one Assemblyreference. This Problem does only exist in Unity 6000.0.24f1(this is the version im currently using). I’m aslo using Visual Studio.
I did a bit of research but I couldn’t find anything. There are methods like LinearVelocity but I didn’t find anithyng abaout there either. Does someone know this problem an a soloution?
Share Improve this question asked Feb 13 at 18:14 choppyChainsawchoppyChainsaw 191 silver badge2 bronze badges 1 |1 Answer
Reset to default 3The reason RigidBody.Velocity is not working in the newer versions of Unity is that it has been renamed to Rigidbody.linearVelocity
The same can be found in the release notes https://unity/releases/editor/whats-new/6000.0.23
Editor: Changed: Renamed Rigidbody.velocity to Rigidbody.linearVelocity in order for the API to be symmetric with Rigidbody.angularVelocity
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745196598a4616122.html
velocity
->linearVelocity
.. it's the exact same thing – derHugo Commented Feb 13 at 20:30