Page 1 of 1

Interaction Tutorial in 3D ?

Posted: Mon Sep 25, 2023 3:04 pm
by charlesque
Hello,

Sorry i'm new to unity. I could miss a lot.
I want to follow the "Interaction Tutorial" with 3D objects.
I thought the equivalent to the "collider box 2d" is the "box collider". And i just have to cross the "is trigger" checkbox. Unfortunatly it doesnt work.

What are the steps in a 3D scene to setup a dialogue trigger ? Different from the tutorial ?

Thanks !


Re: Interaction Tutorial in 3D ?

Posted: Mon Sep 25, 2023 4:31 pm
by Tony Li
Hi,

There's nothing different from the tutorial except to use 3D colliders.
  • Make sure your player and NPC/interactable object both have 3D colliders such as Capsule Collider, Box Collider, etc.
  • Tick the "Is Trigger" checkbox on one or the other, but not both.
  • Add Rigidbody components to both. You can tick Is Kinematic to prevent physics from moving them.
  • Make sure they're on layers that will register collisions. (Check Edit > Project Settings > Physics.)
If that doesn't help, please review: How To: Fix Selector and Proximity Selector Issues

Re: Interaction Tutorial in 3D ?

Posted: Wed Sep 27, 2023 12:31 am
by charlesque
It worked ! Thanks for the detailled answer.

Re: Interaction Tutorial in 3D ?

Posted: Wed Sep 27, 2023 8:16 am
by Tony Li
Glad to help!