Now before I start, I want to emphasise that I’m opting NOT to use the FastCast API. This is solely due to me wanting to create my own method of Projectile - generation rather than relying on someone else’s work. This also helps me to advance in my coding.
I have no access to my laptop at the time of writing this as I’m on the night shift and looking to discuss // conceptualise.
This thread will be updated accordingly so that other Players with a similar question can perhaps find an answer within.
How can I make efficient projectiles and what methods can I trial to improve my knowledge?
Now let’s get into detail - The easiest way for me to explain my intention is simply - Magic. Wands and spells to be more specific.
I’m looking for a way the effictively move a Projectile from Point A to Point B - Efficiently detecting collisions along the way that will result in the effect taking place etc.
I have worked on something similar in the past and this for a ‘for’ loop to CFrame the spell Projectile forward whilst at the same time casting a Ray infront of it to detect collisions.
Although this was VERY efficient in detecting collisions and avoiding that pesky latency that causes projectiles to pass through objects - It wasn’t favourable for performance reasons and proved to cause significant delays.
Ideally the Projectile will be a basic Part - Size of roughly (1, 1, 1) and contain attachments for trails to attach to - Creating visuals and so forth.