Announcement

Collapse
No announcement yet.

Dynamic gravity problem with point gravity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dynamic gravity problem with point gravity

    First of all, I use a source build of Unreal engine where gravity is determined by a vector and is dynamic
    So, I really feel stupid because it seems to be simple but I can't find a way to create a point gravity...
    I use "planar" gravity and it works very well but for point gravity, the gravity pulls the character backward no matter what (even if I make 1/x)
    I just try to create a vector between the character and the center of the "planet" but it doesn't work...
    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	110.3 KB
ID:	1223994

    #2
    Got it, simple math problem... it wasn't divide but substract...

    Click image for larger version

Name:	Desktop 06.17.2017 - 19.22.55.01.png
Views:	2
Size:	840.5 KB
ID:	1129822

    Click image for larger version

Name:	Desktop 06.17.2017 - 19.23.43.02.png
Views:	2
Size:	883.7 KB
ID:	1129823
    Last edited by alex22; 06-18-2017, 09:29 AM.

    Comment


      #3
      Glad your issue got fixed, though I must ask, what source build are you using? Is it one you created for yourself or one available on the marketplace?

      Comment

      Working...
      X