Who knows how to make it so that when you click on the button, the selected object in motion (it takes off and spins) “freezes”. And when the button was pressed again, it “unfrozen”.
I’m a beginner, while I’m just trying to figure out UE5
I’m a beginner, while I’m just trying to figure out UE5
first error:
you are evaluating if paused box is true…if true then you set it to true? you’re not changin anything there.
after that you mixing force with actual rotating the object…there is also a rotational force called TORQUE
tickable when paused just works when you actually pause the game and you are not doing it.
beyond the overall code you are trying to do, maybe the best approach is:
when you push the button, you can get the both velocities of the object (linear and rotational) and store in variables, then disable physiques of the component.
then to re enable it, enable physique again and set both linear and rotational velocity of the component.
this works:
Thanks a lot!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.