Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Getting the absolute dimensions of rigidbody/collider2D

Discussion in 'Physics' started by greenLantern101, Jan 2, 2015.

  1. greenLantern101

    greenLantern101

    Joined:
    Jan 1, 2015
    Posts:
    31
    So suppose I have a random polygon collider in 2D straight from a sprite. And then that polygon is maybe rotated a set number of degrees that I don't know exactly, because it may be based on physics. How do I find the dimensions of the smallest rectangular "box" needed to completely enclose that object?