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 2 years 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 — 2y
0
what do you mean? TheDude646 72 — 2y
0
its where the casing is facing or any part Puppynniko 1059 — 2y
0
i figured it out TheDude646 72 — 2y

Answer this question