Add force is not in correct direction

Hi, im working on a simple project to learn about UE5. One thing is having an actor spawn debrees that get pulled into it adn later I want to add for complex math to get it to orbit. But im currently stuck on getting the force to pull the debree into the actor, currently no matter what I do, the force gets applied to the debree gets pushed away, even when multiplying the force by -1.
Here is the relevant part of the blueprint:

well your get all actors isnt hooked up so its returning null for one?

you also want the root component and the static mesh to be the same, otherwise you’ll get incorrect world locations.

whats calling this function? assuming its the blackhole you can use get actorlocation instead of the blackholeref which i assume is self?

1 Like