Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Reactorcore on July 24, 2020, 03:26:39 PM

Title: [SOLVED] Get / Detect gravity value?
Post by: Reactorcore on July 24, 2020, 03:26:39 PM
I have a character that is supposed to change how they move based on if there is gravity or not on the level.

While it seems easy to change gravity with Set Gravity 2D, I cannot find a Get Gravity 2D anywhere, even on the ecosystem. There is a Get timescale (similar idea), but I need something like that for gravity.

How do I detect what the gravity is via playmaker?

Thanks
Title: Re: Get gravity value?
Post by: Reactorcore on July 24, 2020, 04:41:29 PM
Thanks to ransomink on the playmaker discord, he created a Get Gravity and Get Gravity 2D custom actions (See attachements)

I tested them in Unity and they worked perfectly!