0 votes

i have a box that is kinematic 2d and has 2 raycast on both sides to check for collision but its not working heres the code

func _physics_process(delta):
if raycast1.is_colliding() or raycast2.is_colliding():

it not detecting anything

in Engine by (397 points)

1 Answer

+1 vote

Did you remember to enable the RayCast using the tickbox under the properties? by default it is not enabled .

by (114 points)

( ._.)... why didnt i see that

The box is ticked and I still have this problem... h e l p

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 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 webmaster@godotengine.org with your username.