Skip to content

Trigger

Ask for help here ;)

Trigger

Postby ren072 » 24 Apr 2014, 10:30

Hi,

I've been struggling for several hours on this one!
I just want to output something in the console when 2 objects collide. Both objects have a Collider set to "Is Trigger".
Why it's not working?
Unity project attached.

Thanks
Attachments
Triggers.zip
(7.71 MiB) Downloaded 35 times
Clipboard 1.png
ren072
 
Posts: 154
Joined: 21 Jun 2011, 14:00
Location: Belgium

Re: Trigger

Postby Neodrop » 24 Apr 2014, 11:14

triggers don't collide with triggers
[14:33:12] Alex Harvey: http://docs.unity3d.com/Documentation/C ... lider.html
[14:33:21] Alex Harvey: scroll down for the collision / trigger collision matrix
[14:33:56] Alex Harvey: triggers will only collide with rigidbodies
[14:34:16] Alex Harvey: attach a rigidbody to one object, will work
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Trigger

Postby ren072 » 24 Apr 2014, 12:04

I have to add a rigidbody to one object (Thanks Alex :roll: )
http://docs.unity3d.com/Documentation/Components/class-MeshCollider.html
ren072
 
Posts: 154
Joined: 21 Jun 2011, 14:00
Location: Belgium

Re: Trigger

Postby bojo » 17 Jul 2014, 09:25

hi how can i do this in vizio.

void OnTriggerEnter2D(Collider2D other) {
Debug.Log ("text");
}
Normall on trigger enter activator doesnt work for me do i need to make my own to work with 2d coliders?
bojo
 
Posts: 2
Joined: 17 Jul 2014, 09:08

Re: Trigger

Postby chazzvann » 17 Jul 2014, 11:33

Thats a good question. I'll have to look that up myself.
chazzvann
 
Posts: 4
Joined: 13 Jul 2014, 22:52

Re: Trigger

Postby bojo » 17 Jul 2014, 18:58

if you find anything let me know
bojo
 
Posts: 2
Joined: 17 Jul 2014, 09:08

Re: Trigger

Postby Neodrop » 04 Aug 2014, 22:26

New nodes for 2D collision events will be added in next release. I think, in few days. It's already realised.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Trigger

Postby ClubMyClub » 07 Sep 2015, 18:49

It really is a great forum. I love this place!
ClubMyClub
 
Posts: 18
Joined: 07 Sep 2015, 18:46


Return to HELP!!!

Who is online

Registered users: No registered users