Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Diet Estus |
I’ve noticed that RayCast2D
collides with CollisionShape2D
even if the latter is disabled. I’m wondering if this is a bug.
To reproduce this, create a scene with the following structure:
Node
> RayCast2D
> StaticBody2D
>> CollisionShape2D
On CollisionShape2D
, set disabled
to true
.
Add this script to your RayCast2D
:
extends RayCast2D
func _process(delta):
print(is_colliding())
Notice is_colliding()
returns true
despite the collision shape being disabled.
Is this a bug or intended behavior?
I seem to be having the same problem. Did you find a solution?
Arkinum | 2018-06-11 01:17