This is a super basic question, but I have absolutelly no clue why there is no collision and the player continues to fall. Im following FreeCodeCamp(minute 37:20). This is what I have:
What is Happening?
1 Answer
\$\begingroup\$
\$\endgroup\$
4
Check the Layer Collision Matrix of your Physics 2D project settings to make sure the "Default" layer reacts to itself. I've seen this mysteriously get turned off before.
To access this, Go to Edit > Project Settings… then click on the Physics 2D label on the left. The Layer Collision Matrix is at the very bottom of the list of settings. This matrix controls whether layers react to other layers, including themselves.
-
\$\begingroup\$ Could you provide me a path to follow? Since I'm new, Im stuck a bit \$\endgroup\$Roman– Roman2021-10-20 21:44:47 +00:00Commented Oct 20, 2021 at 21:44
-
\$\begingroup\$ Edit > Project Settings… . Then Physics2D tab. The layer matrix is way down at the bottom of the window. \$\endgroup\$Acme Nerd Games– Acme Nerd Games2021-10-20 21:46:40 +00:00Commented Oct 20, 2021 at 21:46
-
\$\begingroup\$ There is a lot of things unmarked, should I mark all of them? \$\endgroup\$Roman– Roman2021-10-20 21:53:09 +00:00Commented Oct 20, 2021 at 21:53
-
1\$\begingroup\$ Sure. Just make sure the check mark that lines up between the "Default" row and the "Default" column is checked. \$\endgroup\$Acme Nerd Games– Acme Nerd Games2021-10-20 21:54:59 +00:00Commented Oct 20, 2021 at 21:54
