Skip to content

Use AABBs for collision #826

Closed
Closed

Description

@GeraForever

This would make it possible to have fences that you cannot jump over (which would still require #673) and it could also make collisions faster by having collision models have less detail.

Activity

  1. added
    enhancement
    experimental
    on Dec 16, 2024
  2. added
    optimization
    on Dec 16, 2024
  3. IntegratedQuantum commented on Dec 16, 2024

    @IntegratedQuantum
    Member

    You mention fences. How would this work with generated models, like fences?

  4. GeraForever commented on Dec 17, 2024

    @GeraForever
    ContributorAuthor

    My guess would be that it just runs the rotation code on the collision models as well but I'm not so sure if that is the best way to go about it.

  5. IntegratedQuantum commented on Dec 19, 2024

    @IntegratedQuantum
    Member

    Hmm ok, and how would you specify the collision model? Would it be another zon file with axis aligned bounding boxes (since we technically don't really support any other shapes, and it would be more efficient than testing the triangles)?

  6. GeraForever commented on Dec 19, 2024

    @GeraForever
    ContributorAuthor

    It could be that or just having a seperate collisions model that has something like the original model but with _collision at the end of the file. it would also make it easier to have rotation modes i think.

  7. changed the title [-]Make it possible to seperate the model of a block and it's collisions[/-] [+]Use AABBs for collision[/+] on May 9, 2025
  8. IntegratedQuantum commented on May 9, 2025

    @IntegratedQuantum
    Member

    should use AABBs for collisions too.

  9. codemob-dev commented on Jul 27, 2025

    @codemob-dev
    Contributor

    Should the bounding boxes be tied to the model or be separate? Implementation is much easier if they are tied to the model.

  10. codemob-dev commented on Jul 28, 2025

    @codemob-dev
    Contributor

    By tied to the model I mean that you wouldn't be able to use a model without using its corresponding AABB.

  11. IntegratedQuantum commented on Jul 28, 2025

    @IntegratedQuantum
    Member

    Yes it should be tied to (and generated from) the model.
    There should be a slice of AABBs in the Model struct.

  12. added a commit that references this issue on Aug 15, 2025
    83d37bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineenhancementexperimentaloptimization

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions