c# - Why is Rigidbody.Velocity not working in Unity version 6? - Stack Overflow

When I’m typing Rigidbody.Veloity to get my current Velocity. It tells me that Rigidbody don’t have a D

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
  • It was simply renamed velocity -> linearVelocity .. it's the exact same thing – derHugo Commented Feb 13 at 20:30
Add a comment  | 

1 Answer 1

Reset to default 3

The 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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信