Closed
Labels
engineenhancementa new feature or improvementexperimentala feature or idea that will require lots of experimentationoptimizationa performance problem that should be addressed or an optimization idea
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
engineenhancementa new feature or improvementexperimentala feature or idea that will require lots of experimentationoptimizationa performance problem that should be addressed or an optimization idea
Activity
IntegratedQuantum commentedon Dec 16, 2024
You mention fences. How would this work with generated models, like fences?
GeraForever commentedon Dec 17, 2024
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.
IntegratedQuantum commentedon Dec 19, 2024
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)?
GeraForever commentedon Dec 19, 2024
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.
[-]Make it possible to seperate the model of a block and it's collisions[/-][+]Use AABBs for collision[/+]IntegratedQuantum commentedon May 9, 2025
should use AABBs for collisions too.
codemob-dev commentedon Jul 27, 2025
Should the bounding boxes be tied to the model or be separate? Implementation is much easier if they are tied to the model.
codemob-dev commentedon Jul 28, 2025
By tied to the model I mean that you wouldn't be able to use a model without using its corresponding AABB.
IntegratedQuantum commentedon Jul 28, 2025
Yes it should be tied to (and generated from) the model.
There should be a slice of AABBs in the Model struct.
Use AABBs for collision (PixelGuys#1726)