Blockland Forums > Modification Help
[RELEASE] Wire Effect - Now with download link!
Truce:
Just a note, if you want to simplify all your calculations for the curve of the wire, you can use trig functions.
Tammy:
--- Quote from: Truce on December 05, 2011, 04:41:53 PM ---Just a note, if you want to simplify all your calculations for the curve of the wire, you can use trig functions.
--- End quote ---
Right now I'm using the standard from for a parabola according the the conic section definition, 4p(y-k) = (x-h)^2 or (y-k) = (1/4p)(x-h)^2. I don't know of any function to make it simpler. Unless maybe there is a function for a 3D parabola that I can use to calculate the x, y and z all at ones.
heedicalking:
cool resource though i probably wont ever use it in a build.
Tammy:
Any scripter know the best way to save extra data? The only way I can think of is using a separate file. However I think I would need to use a radius search to find each bricks for the wire to attach to, which seems extremely inefficient.
Kalphiter:
--- Quote from: Tammy on December 05, 2011, 06:06:51 PM ---Any scripter know the best way to save extra data? The only way I can think of is using a separate file. However I think I would need to use a radius search to find each bricks for the wire to attach to, which seems extremely inefficient.
--- End quote ---
Events, hopefully there's an onBrickPlant or something of the sort.