I have a player, it’s a dynamic rectangle. I have a floor, its a static rectangle on the bottom. I want to know when player is in air, so I throw event when collision between two of them is “ended”. But even if player stands still on floor, listener still sends me message that collision is “ended”. What is wrong with me?
Tough to tell without any of your code, but perhaps the player is bouncing? You might want to add a Runtime listener that prints your player’s y coordinate to see if any bouncing is taking place.
Exactly. bounce = 0.0 works nice. Now event listener doesnt spam about “ending”. Thanks!
Regardless of the fact that you solved this, you may want to approach this differently. i.e. Use a foot instead.
This article talks about it: https://coronalabs.com/blog/2013/02/19/more-physics-tricks-explained/
Thank you! Not for this project, but I’ll use it %)
Tough to tell without any of your code, but perhaps the player is bouncing? You might want to add a Runtime listener that prints your player’s y coordinate to see if any bouncing is taking place.
Exactly. bounce = 0.0 works nice. Now event listener doesnt spam about “ending”. Thanks!
Regardless of the fact that you solved this, you may want to approach this differently. i.e. Use a foot instead.
This article talks about it: https://coronalabs.com/blog/2013/02/19/more-physics-tricks-explained/
Thank you! Not for this project, but I’ll use it %)