if i have a curved ramp or a hill, or something that isn't flat, will its collision shape be a circle or square or can it follow the contour of the shape?
from what I've read here you only have the choice between circle and square. To achieve a slope or hill you would have to create numerous invisible actors and overlap them to make their edges match the slope enough for your main actor to roll, slide, walk on it.
gyroscopeI am here.Member, Sous Chef, PROPosts: 6,598
Hi diegocs, it's a shame that we can't have irregular collision shapes, ignoring transparency especially, but that's the way it is at the moment. Maybe the GS team will refine collision in a future beta, let's hope. It's circles or squares only.
So to follow something like a curved ramp or hill, the workaround is to make the collision areas as small transparent oblongs, following the curve as close as possible.
gyro ... been trying to take some workload off you chefs who do so much great work helping people here.
Since this topic was one I actually thought I knew the answer for I jumped right in. Diegocs got great help there's nothing better than quick two independent answers that verify the same thing.
Maybe this might be worth Darren putting in his platformer template?!?
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Darren from utopian games lined up small transparent square or rectangle actors to create curves that followed the curved platforms in bumps.
Comments
So to follow something like a curved ramp or hill, the workaround is to make the collision areas as small transparent oblongs, following the curve as close as possible.
Edit: Simo123 beat me to it!
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Since this topic was one I actually thought I knew the answer for I jumped right in. Diegocs got great help there's nothing better than quick two independent answers that verify the same thing.
Maybe this might be worth Darren putting in his platformer template?!?