Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i apply physics impulses/set a part's velocity relative to itself or another part?

Asked by 1 year ago

i'm trying to make a gun that ejects bullet casings out of its ejection port to the right, but every method i've found regarding setting/changing velocities is relative to the world so the casing always flies to the "east" so when i move the casing starts going in the wrong direction.

the methods i've tried so far are:

casing:ApplyImpulse()
casing:ApplyImpulseAtPosition()
casing.AssemblyLinearVelocity = 
0
Have you tried CFrame.LookVector? T3_MasterGamer 2189 — 1y
0
what do you mean? TheDude646 72 — 1y
0
its where the casing is facing or any part Puppynniko 1059 — 1y
0
i figured it out TheDude646 72 — 1y

Answer this question