What is the use of this module?
This module allows you to quickly create Bezier curves and to change the orientation of the target object to the orientation of the curve trajectory
Script Feature:
Creating Bezier curves easily
Orient the target object to a curved trajectory
Obtain the three-dimensional coordinates of the point P2 which makes the curvature of the curve converge to the circumference
I think you should use Attachments instead of Parts from some performance gain. There is a tiny error in version 1.3.0 in the Get2Middle function. You forgot to return the position.
I noticed that there might be a performance issue when many projectiles are flying at once. This could be on my end. If possible, I suggest adding support for a table of instances so that many instance positions can be updated in every frame of just one event. I sort of adjusted the module to support this, but it would be better coming from the creator.
It is also pretty hard to calculate the time needed to reach the goal. It would be nice to have this addition since timing is also pretty important when syncing with animations.
I adjusted it again now. Parallel Lua can be used. Run the “reading/computing state” in parallel, and change the frame in serial. Also, I would replace parts with attachments since attachment is much cheaper to compute performance-wise. By doing so, I improved my performance by at least 2x. Running multiple instances was less of an issue.
Question/Help, I want to apply this to an AI Traffic/Opponent vehicle, currently I have it setup to simply avoid walls, how could I incorporate this to only return the given point of the curve