Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | paxmustela |
Hi all, I have been working on a project and noticed that a body which is no where near the area2d is triggering the body_entered and body_exited signals when the scene loads.
The scale is one line of code here:
sightShape.scale = Vector2(sight_range, sight_range)
scaling for this is 6x in my test. The original radius is 32. The body is much farther than 192 pixels away (though a separate issue is the actual scale is much less than this for some reason when viewed with debug on).
After the scene loads, the area2d behaves normally. Though I can see potential cases where this could cause buggy behavior.
I assume that there is definitely an issue with scaling here: removal of the scaling line and this does not occur