Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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?