How to update blueprint class position with physics calculations?
So I have a blueprint actor (It's just a cube) that has physics enabled on it's cube component via the checkbox in the blueprint editor.
I want to record the transform of this actor in C++ and add it to a vector list of FTransform (which works just fine if manually moving it via code / blueprint nodes) but the actual cube component itself is the only entity that has it's transform updated via physics.
So initially the actor's position for the blueprint class is set to 0, 0, 10. If I start kicking the cube around, that position never changes but the cube component's position and rotation do change.
How can I apply physics calculations to the blueprint class ?
If for whatever reason this isn't possible, or it's long-winded, how could I grab a component of this blueprint based on the tag for that component in C++? (Since I'll have a bunch of different blueprint actors with varying component names).
I was thinking of storing and accessing the transform of the cube component instead which is why I'm asking the above as an alternative solution.
Follow this question
Once you sign in you will be able to subscribe for any updates here