Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Byromaniac on November 22, 2015, 03:11:43 AM

Title: Triggers never seem to work
Post by: Byromaniac on November 22, 2015, 03:11:43 AM
I've tried everything I can think of. The tags are all correct and I've tried it w and w/o rigidbodies, but no my triggers never seem to work properly. They are spotty if working at all. ATM I have objects spawning randomly around a plane and to avoid objects being placed in the same spot, I just wanna destroy it if it hits the trigger, and yet it just just doesn't seem to recognize the trigger..am I doing something wrong?
Title: Re: Triggers never seem to work
Post by: ivam on November 22, 2015, 04:36:54 AM
are you sure the object moving into the trigger has a collision box?
Title: Re: Triggers never seem to work
Post by: dudebxl on November 22, 2015, 08:43:36 AM
... and a Rigidbody
Title: Re: Triggers never seem to work
Post by: redikann on November 22, 2015, 10:05:29 AM
Did you check "Trigger" on the physics component. Did you create a separate layer for the trigger and then change what layer the trigger can detect in Edit>Project Settings>Physics
Title: Re: Triggers never seem to work
Post by: Byromaniac on November 22, 2015, 10:37:45 AM
Yup they have a box, and Rigidbody. I did not try changing the layer. Currently its on the default. I'll try that
Title: Re: Triggers never seem to work
Post by: Byromaniac on November 22, 2015, 11:00:32 AM
Tried changing layer and settings. No luck. Works when I code it out, just wanna use playmaker cuz I basically stumble my way through coding. lol
Title: Re: Triggers never seem to work
Post by: Byromaniac on November 22, 2015, 01:31:54 PM
worked when I turned off gravity....
Title: Re: Triggers never seem to work
Post by: Justin on November 23, 2015, 08:48:47 PM
Are you spawning objects into the trigger? If so, try using both onenter, and onstay.