So I’ve tried to manually set the basketball’s position at each tick like as described here. I’ve ran into the problem that the arc of the ball has somehow seemingly been changed? In the original video, you could see that the ball goes through the hoop unobstructed.
The ball often ends up bouncing out without even going into the hoop. I don’t understand how changing the method ended up breaking this functionality. All I did was use this code:
while elapsedTime <= t do
heartbeat:wait()
elapsedTime = tick()-startTime
projectile.CFrame = CFrame.new(position(Vector3.new(0, -game.Workspace.Gravity, 0),v0,x0,elapsedTime))
end
where v0 and x0 are calculated in the same way as before.
Also, I tried ignoring that problem just to see if I could at least slow down the arc as I originally hoped to do. I added a second heartbeat:wait() to the aforementioned code snippet, but this just makes the ball stutter on its way to the hoop while taking the same amount of time to get there.
So, I’m stuck again. Any tips on solving either of these problems I reached?