I am developing a game where the character walks on a planet. I am an absolute beginner to Unreal Engine and Blueprints. I have been following this tutorial playlist to create a third person shooter style game but with the character walking on a planet (somewhat like Super Mario Galaxy - video reference).
My biggest challenge so far has been to generate a planetary gravity where the gravity originates from the center of the planet. However, this tutorial helped me in creating a function that calculates the surface location and normal and applies it to the actor.
This following update to my Character Blueprint does make the gravity work:
But I am not sure what event to attach as the trigger. If I attach InputAxis MoveForward or MoveRight event, the character just keeps moving on it’s own. I have tried to attach other events, but it does not work.
Does anybody have an idea what should trigger this function? Do let me know if you need any further information from my side. ( :
Thanks in advance.