最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论