AddForce in TickComponent won't work
Hey guys, I have again a big problem. I wanted to implement a new gravity system for all physical objects... so far as I know are there FBodyInstance and UPrimitiveComponent. I do change some Engine Source code for a better implementation of this. Because that FBodyInstance has no way to interact with the UWorld where all objects with mass are stored, to calculate the local mass of an FBodyInstance, so I use UPrimitiveComponent to add the gravity force every Tick, but this doesn't work, also adding any velocity doesn't do anything!
I use this added function to add the force (the debugger said the runtime comes to that point):
And I added this to the constructor:
have i done somethign wrong? And how can I fix that?
Follow this question
Once you sign in you will be able to subscribe for any updates here