Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is no Use Gravity property in Rigidbody2D

There is no Use Gravity property in Rigidbody2D. How can I handle gravity in 2D?

like image 448
user3045901 Avatar asked Dec 02 '25 05:12

user3045901


1 Answers

A RigidBody2D has a gravityScale. It is this gravity scale with which you can adjust how much effect gravity has on the particular object. Setting it to 0 would have the same effect as turning off gravity for a RigidBody.

like image 76
Bart Avatar answered Dec 04 '25 20:12

Bart



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!