Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

466
Views
Collider2D.bounds Explaination

I am not understanding unity's explanation of the Collider.2D.bounds.

From Unity docs: "The world space bounding area of the collider."

Could someone give a better explanation? Furthermore, kindly explain collider.2d.bounds.max and min.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

"the world space bounding area of the collider"
In unity you can get your objects in different coordinate representations, a local system that is independent from its parents and where the object itself is the center of the system and a world system. While the local object system is centered around the object the world system is a fixed system and it describes where exactly the object is in your scene, without the world system you would not be able to know where exactly an object is in your scene as its values describe exactly this.

Object space:

objectspace

World space:

worldspace

In your case you get the bounds (in case of a box the minimal and maximal position) the object has in the world system.

"bounds min/max"
bounds.min.x will be the lowest x position of the bounds (of the object) and bounds.max.x will be the highest

Edit: enter image description here here you can see how bounding volumes are working. Bounding volumes will always include every single vertex around your object, but there are different kinds of bounding boxes, unity uses the axis-aligned bounding box (AABB) one.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!