Download

Add Impulse Vector Help

I have a cube and need some help with setting up an Add Impulse node.
When you click on one of the sides it needs to move in that direction.
So if the player was looking directly at one side it would move away from the player.
The movement has to be square with the boxes location, so 6 different directions possible.

I have a vector of the centre point of the cube and also the centre point of the side clicked.
I was hoping that I would be able to use these two points to make a vector for the Add Impulse node but not quite sure how.

Any ideas?

I’ve managed to do it now.
Just had to use a get direction node and multiply it before connecting it to the add impulse node.