Jump to content

Non-AxisAligned BoundingBoxes?


ObsequiousNewt

Recommended Posts

The Minecraft entity collision code, as I just learned, is sadly lacking. The entity code is configured, by default, to allow a square prism. What if you want a bounding box with custom dimensions? Override setPosition. Easy enough, until you start trying to work with rotation. For example, I'm trying to make a tractor, which is obviously longer than it is wide. I want to allow it to turn. Easy? No, because the bounding box is axis-aligned.

 

I'd like to request, perhaps as a long-term goal, that a non-axisaligned bounding box system be implemented. This would allow for better entity collisions universally.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

  • 3 weeks later...

As all bounding boxes are axis-aligned, the intersection detection (for collision etc) is very easy. if you take a non-axis-aligned bounding box, the complexity of the collision checks increases drastically. So this would be a bad idea as it would harm performance.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.