MagiCats
Wiki home
Conditions / Basic

Is Touching

Checks whether two units are touching.

Current editor blockBlock ID 91IsTouching
Is Touching code block in the MagiCats editor

What it does

Uses physics controllers to test contact. It also supports Any and Every unit blocks in some cases.

Inputs

  • First unit.
  • Dropdown: touching or not touching.
  • Second unit.

Try it

If Player touching Button, Open Door.

Tips

  • Touch conditions are best for switches, pressure plates, and pickups.

Sources

Code checked: MagiCats_UnityProject/Assets/Scripts/Blocks/ContentFonction.cs, MagiCats_UnityProject/Assets/Scripts/Blocks/BlockManager.cs