How to open a door with a key

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

In 3d environment
How can I open a door with an object(which is basically a key) when it is placed on the door’s key hole.

:bust_in_silhouette: Reply From: Bluefox dev

I would recommend using a area node as that allows you to filter through collisions by the colliding nodes name or group.

:bust_in_silhouette: Reply From: Inces

by connecting opening code to collision of key and keyhole.