Raycast Method is_colliding, how to simply get the check done?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pencyl
extends RayCast
  var Contact = ""
  func _physics_process(delta):
    if is_colliding():
	  Contact = "YES"
	  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.


:bust_in_silhouette: Reply From: Blopper

You maybe need to enable the raycast first