update homing-vines
bullet hitbox with custom volume function
#40
Labels
bug
Something isn't working
datapack
Issues pertaining to the datapack
help wanted
Extra attention is needed -- usually higher-lift tickets / onces we're not yet sure how to do
currently the
homing-vines
bullet just checks in a small (1 block) radius around thebullet-head
entity (the front of the vine).this is a very inaccurate hitbox since that means the actual vines don't damage you (the long green parts), only the head (front) does
(TODO add visuals/GIFs so this is more clear)
https://github.com/TheAfroOfDoom/omega-flowey-minecraft-remastered/blob/afb1cc943424e4145c365b8503f9b30655effa6f/datapacks/omega-flowey/data/entity/functions/hostile/omega-flowey/attack/homing-vines/bullet/loop.mcfunction#L4-L7
it's a pretty high lift to actually make this check a non-axis aligned rectangular volume. see:
so from above we'd need to:
utils:math/vector
alternatively (and probably better/more easily) we could instead use a cylindrical volume check. this looks like it'd be easier than a rectangular volume: https://math.stackexchange.com/a/3518553.
we would still need a cross product function though
there's a good chance we just straight up don't do either option above though, in which case we should delete the
utils:math/vector/dot
function (assuming it doesn't get used later by other things)https://github.com/TheAfroOfDoom/omega-flowey-minecraft-remastered/blob/afb1cc943424e4145c365b8503f9b30655effa6f/datapacks/omega-flowey/data/utils/functions/math/vector/dot.mcfunction#L1-L7
The text was updated successfully, but these errors were encountered: