0 votes

Im currently out of ideas on why this suddenly happened while i was working on my game

i was looking at youtube tutorials on ledge hanging and implemented a raycast method
so my raycast wont collide with with an area2D that i created specific for ledge hanging

the ledge has collision layer of 10
the raycast has collision mask of 10

this is the code called during the physics delta function

func LedgeHanging():
    if is_on_floor() and velocity.y < 0 :
        ledgeVCast.enabled = true
        if ledgeVCast.is_colliding():
            print("Vertical Cast true")

thanks for looking

Godot version v3.4.4.stable.official [419e713a2]
in Engine by (12 points)

Have you verified that you're getting past that first if block? If you haven't, add a unique print statement just inside each of the two if blocks to ensure that you know which part of the logic is failing...

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.