I know i can do it even in blueprints with for each loop. But i think its bad to mix some loop with physics simulation.
My goal is simulating gravity and thus gravity movement for bunch of objects. Nothing like KSP, i just want speed vector & mass of object (which is done and in engine).
Now i need some proper way (or best) to add gravity pull force (Towards 0,0,0) each physics simulation tick.
My problem is that i do not even know where to start looking for this in code.
ps.
Making new type of physics constraint that pulls object back when stretched with force equal to gravity pull would also work. But this is less elegant solution imo.
My goal is simulating gravity and thus gravity movement for bunch of objects. Nothing like KSP, i just want speed vector & mass of object (which is done and in engine).
Now i need some proper way (or best) to add gravity pull force (Towards 0,0,0) each physics simulation tick.
My problem is that i do not even know where to start looking for this in code.
ps.
Making new type of physics constraint that pulls object back when stretched with force equal to gravity pull would also work. But this is less elegant solution imo.
Comment