Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Drawing speed from velocity?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

"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
0
I'm not sure that a wait time can go below wait(1/30). So this might not work, techsquad 0 — 9y
0
It is another way of using renderstepped. woodengop 1134 — 9y
0
I swear that the wiki says that the Velocity property of parts is a Vector3. It's not just a position you know. funyun 958 — 9y
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. DragonODeath 50 — 9y
Ad

Answer this question