How to pull a object to terrain

basically i want to make a stronger gravitationally pull between certain objects

Hey there @Max0906! Are you just trying to increase the gravity on specific objects? Or pull objects to each other?

Unreal has a hardcoded gravity system in which you can change the gravity scale for everything, but not individual objects. Usually if you have to change the gravity scale for individual objects, you usually just increase their mass instead. It gives the same effects as increased gravity (until you need to calculate force it knocks items with, then it’s a bit different). In cases where you want even more control you usually have to write your own gravity system.

For changing the direction of gravity or pulling objects to each other, it’s usually better to roll your own as well due to the aforementioned hardcoding of gravity.

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

This tutorial shows a bit of code to pull objects to you, but you could repurpose the maths at least to have them pull objects to each other:

This tutorial shows an implementation of custom gravity that does still use the UE physics system:

Let me know if you have any questions!