How to create a curved collision box?
Croissant
Member Posts: 21
I have a curved ground now. I want to make a curved collision box to attach on the ground, so that my hero can walk on this round ground.
But I couldn't find the way to do this.
Who can help this? Thanks˜
But I couldn't find the way to do this.
Who can help this? Thanks˜
Comments
Now the Long answer. If you take the time you can place small rectangles all along your curves and you can somewhat create a curved surface. There was a very popular game called Bumps that used this technique and it worked quite well for them.
Where can I to play this game?
Like @tenrdrmer says you can plot a line of actors to create a curved surface - the line of actors don't even need to be connected - a line of spaced dots will often be good enough for a surface - using a line of spaced dots saves you from having to rotate each rectangle to the right angle (so that they join forming a line).
I've attached an example file - play it, see how the balls interact with curved line of dots - then drag the big white slider at the top of the screen left and right to change the individual points into rectangles that join up (you can pick the ball up and drop it on your new surface to see how it interacts) - as you can see that depending on the actor that will interact with the curved surface that you often can get away with just using dots.
Of course once you have your dotted curved line you can place a smooth curved image over the top of it.