why does the strength of the pulse change due to the coordinate?

when I made a pulse-based door system, I noticed that if we change the location of the door on the stage, the strength of the pulse changes, that is, how much further away is the door from the zero cardenates, it is so much stronger than the pulse, and that the float value itself does not change, is it somehow related that it uses global cordenates instead of local ones? if so, how can I change it to local?, if not, how can I solve this problem.


here is a video so that you can understand the code itself.

Hey @D.O.R.I.N!

You need to have an input for the “Location” vector- it’s in world space so if it’s left alone it’s applying at world center. You need to have a method of getting a location from which to apply the impulse, if that makes sense, such as using the vector from the line trace or “GetActorLocation->BP_Door”.

Hope that helps!