Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Drawing speed from velocity?

Is it possible to derive the speed of a part from its Velocity vector? If so, how would I go about doing this? Also, I'm unsure of my knowledge on Velocity vectors. Does Vector3.new(0,50,0) mean that that velocity is 50 studs per second on the Y axis?

1 answer

"Does Vector3.new(0,50,0)mean that that velocity is 50 studs per second on the Y axis? "

No Vector3 is a position, not a speed.

if you want do do a speed you would have to do something like

while wait(1/50) do
brick.CFrame = brick.CFrame+Vector3.new(0,50,0)
end

4 comments

0

I'm not sure that a wait time can go below wait(1/30). So this might not work,

0

It is another way of using renderstepped.

0

I swear that the wiki says that the Velocity property of parts is a Vector3. It's not just a position you know.

0

Terrible, just terrible. Vector3 is a simply a vector. And can represent other properties rather than position. Also, I wasn't talking about whether or not Vector3 is speed. I was talking about how to derive a speed number from a velocity Vector. Because it is possible to represent velocity using a Vector. I mean, after all, velocity IS a vector quantity.

This discussion is preserved as it was. New answers, comments, and votes are closed.