Set Gravity

From LuaSTG Wiki
Jump to navigation Jump to search

A set gravity node adds a long-lasting downward acceleration to an object.

The magnitude of gravity will be subtracted from the .vy attribute of the object each frame. The acceleration is calculated independently from the Set Acceleration node. This means two acceleration can act on an object at the same time.

If set gravity node is executed on an object for multiple times, the last one will overwrite the effects of all those that come before.