Kyle
February 23, 2025, 7:33pm
1
Godot 4.3
I’m having an issue with rigid body collisions and I can’t figure out what is wrong. This is a 3D fps game.
I have three collision layers:
World
Player
Props
The player is on layer 2.
The player collision masks are set to 1 & 3
The rigid body is on layer 3.
The rigid body collision masks are set to 1, 2, and 3
But for some reason the player can’t push around the rigid body.
What am I doing wrong?
Needs more context: scene trees for player and the objects and code. Please post exact code as text and properly formatted. Include any error messages. Please refrain from paraphrasing code and errors.
1 Like
Kyle
February 24, 2025, 5:15am
3
I found the solution here:
https://kidscancode.org/godot_recipes/4.x/physics/character_vs_rigid/index.html
Setting the player to ignore props (unchecking the props mask) works but it’s better to apply an impulse in code.
1 Like