Skip to content
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

Your first 3D game - no collision detected with "group" #10420

Open
flochocinco opened this issue Dec 17, 2024 · 5 comments
Open

Your first 3D game - no collision detected with "group" #10420

flochocinco opened this issue Dec 17, 2024 · 5 comments
Labels

Comments

@flochocinco
Copy link

Which demo project is affected:
Your first 3D game

Issue description:
Following tuto, I'm unable to complete "Jump and Squash monsters".

I notice in debug that if condition is never true:
if collision.get_collider().is_in_group("mob"):

I probably miss something by reading but if someone want to have a look to my project, I uploaded it here:
https://github.com/flochocinco/Godot_First3dGame

I also noticed that by applying masks and layers monsters do not collide (i.e. stop) against player.

@Calinou Calinou transferred this issue from godotengine/godot-demo-projects Dec 18, 2024
@flochocinco
Copy link
Author

opened at godotengine/godot-demo-projects#1148

@tetrapod00
Copy link
Contributor

I believe the issue was moved here because if you followed the tutorial and the instructions were wrong, it is a problem with the tutorial, not with the demo project, and belongs in this repo.

@tetrapod00 tetrapod00 reopened this Dec 18, 2024
@aaronfranke
Copy link
Member

Your game isn't working because the enemies are simply lower than the player. You can fix it by raising the enemies, lowering the player, or making the enemy collision shapes taller.

If there is any tweak we can make to the docs to make this clearer, you are welcome to point out what's missing.

@flochocinco
Copy link
Author

"because the enemies are simply lower than the player" -> True! I don't understand why the player is not touching the ground. There is no offset (i.e. transform). I tried to offset the hit box of the player but even with that, no collisions are detected.

Is there a way to show hit boxes at run time ?

@aaronfranke
Copy link
Member

Yes: Debug -> Visible Collision Shapes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants