-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed how entities collide with each other (fixes players pushing each other) #121
Conversation
NPCs push aside any enemy and player they walk into; Enemies only collide with players and NPCs
Closes #103 |
Will test it functionality wise. The pipeline is failing due to not conform with code styling:
gdformat is a tool from gdtoolkit |
How do fix this exactly? is there a git command or some more detailed message for the error? |
So in this case gdformat tells you:
But practically the easiest thing to do is to install gdtoolkit: and run gdformat on your file/ There is also a vscode plugin which I use. |
Found it and isntalled it (might want to add it to the contributions guideline) |
It's already there:
|
Oh, my bad. |
Players are stopped by NPCs and enemies.
Enemies are stopped by NPCs and players.
NPCs are not stopped by anything.
They all still collide with the world.
Entities no longer exist on the J.PHYSICS_LAYER_WORLD and merely use their mask to collide with it.
It was necessary to add the ability for the ConditionLeaf "IsInCombat" to filter targets by type instead of choosing ANYTHING entering their area. (it caused enemies to attack each other lol)
Tests performed: