Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | pencyl |
extends RayCast
var Contact = ""
func _physics_process(delta):
if is_colliding():
Contact = "YES"
else:
Contact = "NO"
I am trying to make the coding as simple as possible, but it seems is_colliding will not actually work, if any beginner tutorial can be given super thanks.
I read the official documentation :
bool is_colliding ( ) const
Returns whether any object is intersecting with the ray’s vector (considering the vector length).
I am quit confused how a vector length can be included.
Thanks!!