Collision Issue with changing collision shape 2d extents

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mrbobs

Hi,

I have an issue with an Area2D with a collisionshape2D as a child.

I am trying to increase the size of the collsionshape2d as follows:

func _process(delta: float) → void:
$CollisionShape2D.shape.extents.y += 1

but if my player (kinematicbody - which has area entered/exited detector which works in every other situation) stands in it’s path outside of the area and then the collision shape expands over the player the player doesn’t seem to be able to detect that in has entered this expanding area.

Hope that makes sense,

Any help would be greatly appreciated.