physics.gravity

Type: number

Overview:


Defines the gravity force applied to the skeleton’s physics constraints. Setting a positive value simulates downward pull on the bones, while a negative value will make the bones float upwards.

Example:


hero.physics.gravity = 0.98
print("Gravity:", hero.physics.gravity)