Drop this into a component and create the missing variables.
Keep the `PreviousOverrideGravity` private, the others public.
`GravityStrength` should default to 980.
You can set the GravityDirection to any direction you want for custom gravity direction. For the regular direction set it to (0, 0, -1)
Code to Copy
Click in textarea then do
ctrl + a and after do
ctrl + c. In Unreal Engine blueprint editor, paste it with
ctrl + v
Code to Embed