How to get the top right and lower right corner of Box Collider 2D

Good Day

I wanted to know, how to get these points of a box collider 2D.
Thanks

Hi @gsammbunny

If you are OK with axis aligned bounding box, then use collider.bounds.

If you need to get rotated box, you could also use bounds size values, and then use these to get corner positions offsets, and then rotate those by object rotation to get corner world locations.

1 Like

still not getting the desired results.
is
upper right corner of box collider is max.x and max.y ?
lower right corner of box collider is max.x and min.y ?

This is what I want, thanks if any help