Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Godot_Noob |
Hi !
I would like to give to my little cell an oval shaped CollisionShape2D. To do that I created a CircleShape2D that I flattened thanks to GUI, doing this changed the y-term of the scale.
Problem is the weird behavior of two cells meeting each other. They don’t slide as they should, but are attract or repel…
Is this a known issue and is there a solution for oval shaped CollisionShape2D ?
EDIT WITH ANSWER :
I edit my question with the full answer, because it was given by hilfazer into an answer and a comment, not really useful to read.
So, you should not scale a CollisionShape2D, it creates weird behavior (see his first answer). To have an oval/ellipse CollisionShape2D seems not possible in Godot (see
https://forum.godotengine.org/15016/is-there-no-way-to-make-an-elliptical-collision-shape ), but you can use instead a CapsuleShape2D, what I did.
Voilà