Black hole like physics

So I have been doing this thing where I try to work out how to have objects that… I better show my project. Keep in mind that I don’t want to also calculate distance from my black hole to my red ball. Just velocity.

The problem seems to be when the ball gets into other “quadrants” . Would love your opinion

3 Likes

The main problem here is that you are always adding to the angle. This is always going to make the sprite turn differently depending on if it’s traveling right or left. What you should be doing is making the sprite lose velocity in other directions while gaining velocity towards the black hole. Since you don’t want to calculate the distance to the black hole (for some reason) the amount of speed you want to add to the sprite is going to be a constant, so it will look a bit weird.

1 Like

Ah… I get it. I don’t know how to do that though. Could you maybe show me how?

1 Like

Here ya go. If you want it to be fast or slower you can divide or multiply the output of those Cos and Sin blocks.

2 Likes

Thanks so much!

1 Like