Interaction Tutorial in 3D ?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
charlesque
Posts: 2
Joined: Mon Sep 25, 2023 2:54 pm

Interaction Tutorial in 3D ?

Post 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 !

User avatar
Tony Li
Posts: 22114
Joined: Thu Jul 18, 2013 1:27 pm

Re: Interaction Tutorial in 3D ?

Post 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
charlesque
Posts: 2
Joined: Mon Sep 25, 2023 2:54 pm

Re: Interaction Tutorial in 3D ?

Post by charlesque »

It worked ! Thanks for the detailled answer.
User avatar
Tony Li
Posts: 22114
Joined: Thu Jul 18, 2013 1:27 pm

Re: Interaction Tutorial in 3D ?

Post by Tony Li »

Glad to help!
Post Reply