Orbit simulation in Unreal, nothing works in any way

Hello
Im still a Beginner and i am trying to code an Orbit simulation in Unreal by trying to do something similar to what Sebastian Lague did in his solar system video.
The Problem is that the Planet just disappears and all Values are either Infinite or Nan.
Here is my Code:

Found the solution myself: i multiplied by sqrDst but it should be Divide.

If anyone finds another problem with the Code i would be thankfull to hear that.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.