Skip to content

Conversation

@Jondolf
Copy link
Member

@Jondolf Jondolf commented Feb 5, 2025

Objective

#476 changed CollisionLayers to use one membership (the first layer) and all filters by default. However, ColliderConstructorHierarchy is still using the old default!

Solution

Use CollisionLayers::default() (one membership, all filters) by default for ColliderConstructorHierarchy.


Migration Guide

ColliderConstructorHierarchy now defaults to one membership (the first layer) and all filters for the CollisionLayers of generated colliders. This is consistent with how CollisionLayers already works normally.

@Jondolf Jondolf added C-Bug Something isn't working A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality M-Migration-Guide A breaking change to Avian's public API that needs to be noted in a migration guide labels Feb 5, 2025
@Jondolf Jondolf enabled auto-merge (squash) February 5, 2025 22:54
@Jondolf Jondolf merged commit c1f9722 into main Feb 5, 2025
5 checks passed
@Jondolf Jondolf deleted the fix-collider-constructor-default-layers branch May 8, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Bug Something isn't working M-Migration-Guide A breaking change to Avian's public API that needs to be noted in a migration guide

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants