Godot Version
4.3
Question
Is there any way to check if the given point is colliding without add node to scene.
Can i check via code, something like this (in 2D):
Raycast2D.CheckCollide(vec2 position, vec2 target, int collision_mark) -> bool
4.3
Is there any way to check if the given point is colliding without add node to scene.
Can i check via code, something like this (in 2D):
Raycast2D.CheckCollide(vec2 position, vec2 target, int collision_mark) -> bool
There is PhysicsRayQueryParameters2D
in gdscript that can be used this way. All you need to do is provide a start point and target point and it reports the first collision along the ray.
Thank you for quick rep. I will try now.