How to add force to hit location?

Hi! I have a misunderstanding about how to add force where a sphere trace hit the location.
I want that when the sphere hit the location the pogo to be
pulled to the ‘hit location’.


The sphere trace function on event tick!

Another thing would be, if the pogo is not perpendicular to the obstacle, I want the force to be zero.

Adding Force!


Not adding Force!

Up?

This should be multiplication, surely.

  • draw a debug arrow to see where the vector is actually pointing
  • depending on how the behaviour is driven, 1000 force may no be much :person_shrugging:
1 Like

A big value helps, thanks!

Now the problem is, If I turn the pogo, the force will continue to add and the pogo will start to move the wrong way.
I want to somehow detect when the pogo is not perpendicular to the wall and add force when it is.

up?