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

Moving ball using velocity (need physics help)?

Asked by
roquick 41
6 years ago

Hello I am trying to make a ball fly towards the target using nothing but velocity (I cannot use rocket propulsion or body positioning for this)

If I have a starting position of Vector3.new(0,0,0)

And my target is Vector3.new(20,20,150)

And the ball has 5 seconds to move to the target

Does anybody know how I can calculate the velocity needed in a BodyVelocity instance to make the ball move to the target?

0
Hmph... Using physics? idk... TweenService, maybe? But it's not physics. Aimarekin 345 — 6y
0
calculate hte Magnitude TheScriptKing 102 — 6y
0
Oooooooo. We have a snack break problem that had this problem, haha. OldPalHappy 1477 — 6y
View all comments (4 more)
0
I think a lotta people might have use RotationalVelocity, but I'm not sure. OldPalHappy 1477 — 6y
0
if I do workspace.BaII.BodyVelocity.Velocity = HumanoidRootPart.CFrame.lookVector * 10, it makes the ball travel towards the direction the player is facing in. But I'm trying to make it go towards the direction the target is in, anybody know how? roquick 41 — 6y
0
figure how to make the ball go towards the target by combining the positions within a cframe & then using look vector. but I got a new problem, the ball stays on the ground & won't travel to the hieght of the target :( roquick 41 — 6y
0
Nevermind, I solved it by increasing the MaxPower in the Y roquick 41 — 6y

Answer this question