ldaspp
(ldaspp)
May 3, 2024, 11:37am
#1
You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to make a prediction for where my projectile will go
What is the issue? Include screenshots / videos if possible!
The issue is information on Roblox beams happens to be very limited
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
People don’t ask these questions, and experimenting didn’t help.
1 Like
ldaspp
(ldaspp)
May 3, 2024, 11:44am
#3
So this code is for one of Roblox’s Natural projectiles or whatever they are called? The ones where they launch them in a direction with a force?
1 Like
Yep, projectile motion for projectiles with an initial velocity and the only force is gravity.
1 Like
ldaspp
(ldaspp)
May 3, 2024, 11:48am
#5
So what are launch angle and initial speed?
Ill find out the rest myself
1 Like
You can find those in the example code.
For the beam portion the only relevant one is the one function by EgoMoose beam projectile. Btw t1 is the end time of the projectile where the beam will end.
The angle is only for orienting the projectile
-- v0: initialVelocity(Vec3), x0: initialPosition(Vec3), t1: flightTime((+)number), g: gravity((+)number)
function ProjectileLib.BeamProjectile(v0, x0, t1, g)