#adding bullet trail, what is the best way to do it

1 messages · Page 1 of 1 (latest)

coarse pawn
#

given a starting point and ending point, what is the best way to add bullet trail.

fiery plaza
#

You can spawn parts after the bullet, but that could be laggy. You can make a trail part in the bullet part, but I haven’t tested that either.

coarse pawn
fiery plaza
# coarse pawn im looking for the most optimized way

Again, that would mean use trail part. More on that here: https://devforum.roblox.com/t/how-would-i-make-a-bullet-trail/2762816

good luck!

fleet cosmos
# coarse pawn im looking for the most optimized way

trail (if it is a physical bullet), or a beam. do not bother asking what is most optimized when you haven't decided whether or not the bullet is physical or hitscan. in fact dont bother asking optimal at all until you have a game large enough, and laggy enough, to justify optimization. premature optimization is the root of all bad code.

coarse pawn
#

just want to learn

fleet cosmos
# coarse pawn im looking for the most optimized way

this is a very common misconception. understanding all your options, and understanding how they work, even the unoptimized ones, is more important than just blindly asking 'what is most optimal' and then you go with someone's 'trust me bro', you will inevitably end up making poor decisions that way. no one knows the most optimal, if anything the most optimal method is the one that works best for your purpose, which is different for every purpose, and no solution is really better than another. Performance comes second to purpose. So instead of asking which solution is best, ask what solutions there are to choose from and what are their trade-offs instead.