所以我有一个物理组,速度很低,比如child.setVelocity(1, 10);
如果这组子元素从更快的群体碰撞中加速,这是很好的,但我希望他们非常慢,基本上不受重力的影响,但仍然在移动,不会因为摔倒而加速,有什么办法做到这一点吗?
所以我有一个物理组,速度很低,比如child.setVelocity(1, 10);
如果这组子元素从更快的群体碰撞中加速,这是很好的,但我希望他们非常慢,基本上不受重力的影响,但仍然在移动,不会因为摔倒而加速,有什么办法做到这一点吗?
You can turn of the gravity of one gameobject with the fucntion gameobject.setAllowGravity(false)
link to the documentation.
Or if you are using it in a physics group, you can use the property allowGravity
and set it to false
.
link to the documentation