Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | wetbadger |
When you create a raycast it normally doesn’t collide with anything until the next loop through _physics_process() etc. I was wondering if there is any way around this?
example:
func _physics_process():
if not ray_created:
ray = raycast.instance()
add_child(ray)
var collision_info = ray.collide() #if ray was just created it won't collide until next time around.