ApplyImpulseAtPosition does nothing?

I created a new place to test ApplyImpulseAtPosition, and it does nothing to the part.

Code:

wait(1)

local part = workspace.ImpulseTesting

part:ApplyImpulseAtPosition(Vector3.new(0, 100, 0), part.Position)

Part properties:

3 Likes

i think I found a really interesting post that may help you and solve your issue

1 Like

I know about apply impulse, I wasn’t clear with my use case here. I made an ocean system that I now want to implement boats with. Apply Impulse At Position seems to be the only way to create a swaying motion without doing the math myself, but it didn’t work when I tested it.

1 Like

Seems to work for me.

https://gyazo.com/e8930e6dbb4114e0b54e18d85d72179b

https://gyazo.com/0ace7ac3cb8451b78342e3bb69ea15bc

1 Like

Is the part anchored? If not, can you put it on the ground so the force of gravity doesn’t cancel out the force you applied within your script?

1 Like

Check out the documentation page on ApplyImpulse.

It depends, are you using a server script to do this or a LocalScript? If it’s a server script, and you are not manually setting the network owner of the part through SetNetworkOwner, then it should work. If it’s a LocalScript, the client must have network ownership of the part.

It seems that you are not applying enough force though, as I applied the same force you’re applying here to the default Part size which is 4, 1, 2, and it barely got off the ground. Apply a stronger force.

2 Likes

I’ll try a stronger force, i’m also going to change the position to make use of the rotational offset as well, i’ll post my progress here.

It works, it seems it seems I wasn’t applying enough force, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.