onTriggerStay detects collision even if is not colliding
I am using a collider to detect if the GameObject is on the ground.
When my gameobject spawn in air, there is no problem, but after it touch the ground, the triggerStay detect collision even if my object jumps or falls.
I attached to a child GameObject "ColliderFeet" a RigidBody and a box collider (isTrigger).
"ColliderFeet" and the ground (tested with cube and plane) are assigned the layers "Feet" and "Ground" respectively.
@tormentoarmagedoom here is the screenshot (sorry for the delay)
Can you post the code and screenshot of scene, inspector and hicheracy?
Thanks
Your answer
Follow this Question
Related Questions
Prevent changing speed at collision 0 Answers
Trigger a box collider based on force of an object 1 Answer
How do I detect a collision between two objects using Bolt? 1 Answer
Trouble with collison and trigger's 1 Answer
Is there any good sample code for shooting a projectile and collision detection? 0 Answers