#is_on_floor not registering

13 messages · Page 1 of 1 (latest)

slow saddle
#

It's what the title says: is_on_floor is simply not registering at all. It's a mistake on my part, probably in the node tree somewhere, The code just came with CharacterBody2d and i wanted to try it out

gilded ingot
#

did you change the up direction?

slow saddle
#

No, i don't now how to do that

slow saddle
gilded ingot
#

How do you know it's not working?

slow saddle
# gilded ingot How do you know it's not working?

It falls through. I also linked it to a print statement. The character falls onto a perfectly vertical side of an Area2D (with collision that fits the shape, trust me i double checked) and just keeps falling. Didnt trigger print statement linked to is_on_floor

gilded ingot
#

don't use area2d for collision

#

they only detect bodies, not stop them

#

use staticbody or rigidbody

slow saddle
#

Thanks, imma try that

slow saddle
gilded ingot
#

Haha don't worry

cosmic sable
#

Think of Areas like the sensors for automatic doors. They detect, but don't actually stop anything.

The doors themselves would be Rigid Bodies. And the walls and floors Static Bodies (because they don't move).