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 5 days 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 473 — 5d
0
what do you mean? TheDude646 72 — 5d
0
its where the casing is facing or any part Puppynniko 236 — 4d
0
i figured it out TheDude646 72 — 4d

Answer this question