I was looking at tutorials for turrets and the line of code he used for the velocity is this.
bullet.Velocity = turret.CFrame.LookVector * bulletSpeed
I thought LookVector was the direction; How does the LookVector have anything to do with the velocity?
COMMUNITY QUESTION
Why do you do this when making a turret fire a bullet at something?
1 answer
LookVector is to determine the position. Velocity is a calculation of the change in position. So basically it would determine how fast the bullet. Also velocity is deprecated so you don't want to use it.
Anyways here's the documentation
https://developer.roblox.com/en-us/api-reference/property/BasePart/Velocity
This discussion is preserved as it was. New answers, comments, and votes are closed.
