The current GetCapsuleColliderVertices() function will not return the correct array of vertices when given a rotated CapsuleCollider2D. This is due to the method being used not being able to properly order the vertices within the array when the CapsuleCollider2D has non-zero rotation.
The current
GetCapsuleColliderVertices()function will not return the correct array of vertices when given a rotatedCapsuleCollider2D. This is due to the method being used not being able to properly order the vertices within the array when theCapsuleCollider2Dhas non-zero rotation.