I'm trying to get the point at which an Area2D node touches a CollisionBody2D. This is the setup I currently have. The black circle represents the Rigidbody2D, the light blue outline is the Area2D I have around the Rigidbody2D, and the line is the CollisionBody2D that collides with my Rigidbody2D which is detected by _on_area_2d_body_shape_entered. When the Area2D reaches another shape, the output only shows Godot.Vector2[] where I'm expecting coordinates of the point of contact. I'm not sure what I'm doing wrong...
#CollideAndGetContacts returns no Vector2 points.
13 messages · Page 1 of 1 (latest)
Primitive shapes only?
Specifically, CircleShape2D and RectangleShape2D
I'm starting to think there's something wrong with C# specifically. I've got this code here that should output all the baked points in my Path2D.
Again, all I get are these empty Vector2 values
And yet, there are exactly as many outputs as there are points as expected, I just don't get the coordinates from them
I'll try using a godot script instead of a C# script to see what happens
Upon further inspection, I may have missed this step
To clarify, I set the bake interval to the highest possible value, so it absolutely should return just the nodes
Okay, so I was being silly with the newest issue here #advanced-2 message
I may be able to apply the same thing to my original issue
Turns out I was being silly! I didn't know how to access the Vector2 array correctly, and now I do.