How would I make a knife projectile rotate in the direction that it's moving?
Asked by
4 years ago Edited 4 years ago
Hello! I came here because I have been having issues trying to rotate a knife based on the direction that it is traveling in. I have created a script that allows the player to throw a knife towards the direction of their mouse, however I need the knife to rotate towards the direction that the knife is traveling.
1 | knifeDummy.Velocity = CFrame.new(player.Character.HumanoidRootPart.Position, mousePos).lookVector * 2 |
Above is the code that I used to make the knife travel towards the mouse using the mouse hit position and lookVector. How would I go about making the knife rotate towards the direction of the velocity?
Note: I have tried to use AngularVelocity but the knife rotates towards the same direction every time, despite me throwing the knife in a different direction.