- Home /
Tag detection not working with rigidbody
Hi, I'm making a game, and am trying to make the bottom of a moving platform make player unable to keep in the air (by holding w) (while colliding with an object, it compares its tag, and if it is notFloor, w key does nothing (or it should)). I have a platform (which has a rigidbody, because it will move later), which has a child with notFloor tag on the bottom. However, collision with the bottom of the platform does somehow not detect the tag (the platform itself has a collider on the top and doesn't have the notFloor tag for the player to be able to jump on top of it). It is not ok like that, because the player should not be able to hold on the platform, or climb it using this bug. Also, when the object has no rigidbody, the inability to jump works.
Is there a way to fix this problem?
Thanks in advance