When is it necessary to attach a kinematic rigidbody to a gameobject?
I understand that moving static colliders is expensive, and attaching a kinematic rigidbody could help with that.
But, what if there is no collider attached the gameobject that is moving? Is it still necessary to attach a kinematic rigidbody?
What about UI elements with rect transforms? If UI elements slide in and out of screen view, would they need kinematic rigidbodies attached for best optimization?
Thank you.
Answer by hexagonius · Feb 25, 2016 at 10:35 AM
They are only necessary for objects with colliders. The UI doesn't use them so no. The Physics engine optimizes a lot for optimal performance. colliders that never move are handled their specific way. attaching a rigidbody let's the Physics engine know that those might move and optimizes then differently.