I am trying to stop/destroy an applyimpulse from a different script.
Solutions I have tried: Setting the velocity of the object to 0, Creating an ApplyImpulse that sets the object to 0.
I am trying to stop/destroy an applyimpulse from a different script.
Solutions I have tried: Setting the velocity of the object to 0, Creating an ApplyImpulse that sets the object to 0.
Please post the relevant code, that’d make it much easier to help.
But the overall approach is going to be something like having an if statement that checks a variable in the code that applies the impulse, and set that variable in the code that is supposed to “stop” the application.