Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | bruteforce | |
Old Version | Published before Godot 3 was released. |
Hi,
I have 2 questions about collision objects.
I didn’t find the decisive answer in the documentation.
1.) Shape type
class: CollisionObject2D
function: get_shape
If I have a RigidBody2D
(with custom CollisionPolygon2D
), then the get_shape(shape_idx)
function will return ConvexPolygonShape2D
instance always?
Or it can also return any other ***Shape2D
types (as I see the function’s signature allows it)?
2.) Shape points order
class: ConvexPolygonShape2D
function: set_points
The documentation says:
“Set a list of points in either clockwise or counter clockwise order,
forming a convex polygon.”
Is this true? It only works for me, when the order is CW.
Maybe I screwed up something :D?