Bezierpath V2.0.0 is out!
Completely reformatted the code.
Added 1 new function (VisualizePath)
Fixed edge cases
improved construction times
New optional curve size table for .new
decreased memory cost significantly
Github:
Completely reformatted the code.
Added 1 new function (VisualizePath)
Fixed edge cases
improved construction times
New optional curve size table for .new
decreased memory cost significantly
Github:
Yayyy good job. Path visualize is really useful thx! Can u give some performance stats of comparing bez path v1 and bez path v2
Is there a way to get current node/path with with calc?
I tried use CalculateDerivative but it didnât go well.
sadly no as there wasnât really a clean way to implement it into bezierpath.
though if you are interested you can make the private function âGetSectionFromTâ public and use it for your needs. it returns the section that corresponds to the inputted T value which hopefully you can use for what you need. a section has full type checking so understanding how they are structured should be a bit easier
Ty, i got it working now by copy and modify GetSectionFromT.
Can we get some stats on this?
what is TD short for? Tower Defense?
Yes, TD stands for Tower Defense
Also, is this published to Wally yet?
I think it is, if you check the github, it says
"BezierPath can be installed using wally: "
No itâs just that ipthe updated version isnât on wally
Hey. I have a question regarding this.
For my formula I use GetServerTimeNow(). You use tick().
Is tick() really that important for the functioning of the system because my code doesnât support speed change currently:
local t = (workspace:GetServerTimeNow() - enemyTable.StartTime) / (totalTime) --workspace:GetServerTimeNow()
enemyTable.T += t
enemyTable.StartTime = workspace:GetServerTimeNow()
âStartTimeâ is basically just serverTimeNow but multiplied with something to support delay. Nothing crazy.
it isnât?
im pretty sure i published it
1 section in the new version takes 56 bytes, while in the old it was variable and could easily take up a few hundred or even thousand bytes if a section was long enough due to the precomputation
Whatever, I just copy and pasted it.
Is it possible to create flight paths with bezier path?
Like letâs say you want to create a grenade and want to make its flightpath be a smooth curve. Is that possible withe bezier using only 3 nodes? (Start, pull point, end)
for that iâd recommend just using a regular bezier curve instead of bezier path
Hi I have been playing around with the CalculateClosestPoint is there any way for me to get the point in much finer time? It was only giving me points of 0.1 in each point how can I increase itâs points?
Actually nevermind lol I found a way.
CalculateClosestPoint has an optional iteration parameter but hasnât been implemented.
oops, the iteration parameter was from an old version that i forgot to remove haha.
if you want more finer precision you can go into the source code and increase the samples taken by the function. however just a heads up this can be more computationally expensive so make sure to find a good balance.