MrKezzel
(TheDesertFox)
#1
So if the title did not explain what i am asking for, I’m making an artillery system. And when the shell is fired i want it to slowly drop in height:
This picture explains what I am going for.
I’m using Raycasting to get where the shell will hit.
Does anyone know how to achieve this?
N_TDay
(Day)
#2
you can use bezier curves for that
local from = YOUR_POSITION
local to = YOUR_POSITION
local direction = from - to
local duration = 2
local force = direction / duration + Vector3.new(0,workspace.Gravity*.5,0)
YOUR_PROJECTILE:ApplyImpulse(force*YOUR_PROJECTILE.AssemblyMass)
For hitboxes you can use just a simple .Touched event or use a Raycast Hitbox 4.01: For all your melee needs!
For another way i would recommend you to dive into “FastCast” module.
It’s been 3 years but