- 摘要:任何拥有collider component 的都最好加上Rigidbody
- 细节:出于性能考虑,但没有Rigidbody 的物件都认为是static,因为unity认为该物件不需要运动,并把全部static物件cache,如果写script让其运动却不赋予RigidBody,则per frame都要重新计算全部static物件到cache,影响性能,所以赋予Rigidbody给所有运动的物体让unity cache一次所有static物件,不需要重复刷新cache
- 参考:https://unity3d.com/learn/tutorials/projects/roll-ball-tutorial/collecting-pick-objects?playlist=17141
Last active
March 18, 2018 02:30
-
-
Save elsonwu/058889913d0a390f12bc31ce17283715 to your computer and use it in GitHub Desktop.
Unity 笔记
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment