Using a LineHandleAdornment for projectiles?

I’ve been reading around about the most optimal way to make projectiles. The most interesting was the use of LineHandleAdornment in a reply by jewelycat, here’s a link to the topic she commented on: https://devforum.roblox.com/t/projectiles-pre-calc-vs-body-movers/28568/22
I would love to know how this works as I’ve never used them before and if this can improve the frame rate of my game.

It seems using this method would be much more efficient than any other alternative.b86c098c42e5b3590d27badde6f5d9f6806013f1_2_690x499
Jewelycat claims it can handle 1,000 live projectiles with minimal performance hit on a ‘garbage computer’.

2 Likes

Well, I mean, the first thing you’ll want to do is actually read the article related to the object you’ve taken an interest in. There was a link at the bottom of the page. Perhaps you could also find out how to use LineHandleAdornments from here as well (it’s honestly like creating a tracer for a ray cast).

https://developer.roblox.com/api-reference/class/LineHandleAdornment

2 Likes