I am making a simple game in which you can’t kill enemies - just temporarily turn them to objects and move them around by pushing or using push gun.
Replacing enemies with objects works perfectly. But I encountered a serious problem with replacing objects back with enemies. If I push these objects using built-in physics or by shooting with standard FirstPersonProject weapon, enemies still appear at old locations. I figured out that AddImpulse doesn’t change Transform, and I use the Transform to spawn the Actor back.
So, if I move the object, the enemy appears at an incorrect location. Which ruins the idea completely.
Any thoughts on the matter? How can I make this work? Is there any way to correctly update Transform after adding Impulse? Thanks.