:ApplyImpulseAtPosition() works strange?

I tried to apply impulse at position which is not even a point inside of part. But I still have impulse applied to the part. How?

Here is a file:

impulseatposition.rbxl (57.5 KB)

ApplyImpulseAtPosition does not check if the point is inside the part, it just applies the impulse like if it were.

If you only want impulse to be applied for points inside the part, check using APIs like BasePart:GetClosestPointOnSurface().

For example:

local targetPart = workspace.PartA
local pos = workspace.PartB.Position

local tSurface = targetPart:GetClosestPointOnSurface(pos)
local tDistance = (tSurface - pos).Magnitude

if tDistance < 0.02 then
	print("inside target part!")
else
	print("outside target part!")
end

Probably I wasn’t clear, but my question was how is it possible that impulse is still being applied despite the fact that I pass point outside of assembly. If I kick the air 10 meters away from the ball, ball will not move.

Again, the method doesn’t check if the point is within the part, it will apply the impulse regardless. This isn’t real life.

Sorry, I misread what you have said.