Skip to content

Entity Layers + physics collision matrix#35

Open
schteppe wants to merge 7 commits intomasterfrom
layers
Open

Entity Layers + physics collision matrix#35
schteppe wants to merge 7 commits intomasterfrom
layers

Conversation

@schteppe
Copy link
Copy Markdown
Member

  • Added a .layer property to Entity instances.
  • Added LayerManager that keeps all layer names. Can be used to convert between name and layer. Good to have when this stuff gets into Create.
  • PhysicsSystem has a "collision matrix" with information about what layer collides with what.
  • Colliders update their masks on initialize() depending on the "collision matrix" in the PhysicsSystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant