Saving/Loading Physics and Forces
Is there any way to easily save/load physics on an object?
For example, a ball is rolling down a hill. I save the transform of the ball.
When I load the save, the ball is in the correct spot; however, the physics are different from when the object was saved.
From what I can tell, the loading does not reset the physics of the object.
If the ball stops rolling after the save, it is still not rolling when loaded.
Is there an easy way to save the physics on an object at save time?
Right now, the only method I can think of is grabbing the forward vector at save time, stopping all forces on the object, then re-applying the force at load time.
Is this the correct/only way to do this? I could not find any tutorials on this, nor any other posts about it.
asked Mar 28 '16 at 07:43 PM in Blueprint Scripting
Where are you saving the values for the ball? You should just be able to save those values, set them as a new variable somewhere (game instance perhaps), save those and then load those.
answered Mar 28 '16 at 07:54 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here