0 votes

It started because first I needed some areas that follow the camera, so CanvasLayer did the job. Inside the CanvasLayers (the layer that follows the camera) I put some areas to execute a script whenever a number of RigidBody objects outside of the CanvasLayer are inside these areas in the layer, however...

Apparently what is inside the canvas layer is treated as a "separate dimension" from normal game layers, is there any way to make the collision among them happen?

Also: the collision happens normally when I put the areas outside of the Canvaslayer so it isn't any imprudence in the coding.

Godot version 3.2.3
in Engine by (12 points)

2 Answers

0 votes

Not an answer but there is a similar Q & A here : link
Hope this helps!

by (63 points)
0 votes

You would run a check at the usual signal, but for argument you pass a “body” instead of an area. So:

func “on_Area2D_entered”(body):
    If body.name == “yourObjectName”:
        #then your code
by (296 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.