Quantcast
Channel: Questions in topic: "performance"
Viewing all articles
Browse latest Browse all 173

Should I put a rigidbody on colliders moved by script ?

$
0
0
Hi, I'm wondering if a rigidbody is required or not when moving a collider by script. This collider can collide with dynamic objects (these objects have a non-kinematic rigidbody), and no script callback (OnCollisionXXX) is required. I tried both (without rigidbody attached and with a kinematic rigidbody attached), and the result look the same : All the dynamic objects collide normally with this "moving wall". I've heard that it's best practice performance-wise for the physics engine to have a kinematic rigidbody on moving colliders. Is this true ? or is it only true if I want collision callback ? Thanks a lot!

Viewing all articles
Browse latest Browse all 173

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>