At the end of the lesson supposedly shooting at the incoming slimes work, with bullets seen in the video.
For me it seems I can shoot the slimes (they tend to vanish after a few hits, just as they should) but I can’t see any bullet at all…
Some debugging later reveals the Bullets collide with the CameraConfiner…
Time to rewatch the video and see if I missed a tiny step…
…
Seems the only thing that was done to it was resetting the layer to be Friendly
, which I did…
Besides, at the moment the script doesn’t care what layer the object has it collided with…
I found my mistake. When configuring the Friendly/Friendly interaction for the collision mask I accidentally did it in the Physics
tab of the project settings instead of the Physics2D
tab. Oops.
That also explains why the Tab looked so differently, in Physics
all settings are visible directly whereas in Physics2D
the “General Settings” and the “Layer Collision Mask” are seperated out…
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.