I’m currently making 2d game with libgdx and I need to make ‘Beam Attack’
(image is from other game, and this is what I’m trying to achieve)
I’m not certain what is right term to call this shape.(concave curve? spline with height? spline with area?) Which is one of main reason I’m having hard time searching for how to handle this.
Someone told me there is ‘Catmull–Rom spline’ which helps how to interpolate points and generate spline. But as this shape need to be used as ‘attack’ the shape can’t be just line and need to be polygon that have area for hitbox. I’ve tried to using points Perpendicular to each point of spline or use same spline as other edge, but it didn’t worked out.
So I have two questions.
1.Is there any better term to describe this shape rather than just spline?
2.How does this polygon’s points should be defined to have right hitbox?