Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on August 10, 2014, 03:50:40 AM

Title: Make a game object trigger a event[SOLVED]
Post by: coffeeANDsoda on August 10, 2014, 03:50:40 AM
I have a game object set up to move to one direction. When I have it collide with a object that has a trigger set up it doesn't react, but when I use a first person controller prefab it does. Why does it do that?
Title: Re: Make a game object trigger a event
Post by: Lane on August 11, 2014, 10:58:07 AM
Does you GameObject have a collider?
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 11, 2014, 07:56:27 PM
Does you GameObject have a collider?

Yes, with is Trigger turned on. Plus, did the same thing with the 3rd Person Controller prefab.
Title: Re: Make a game object trigger a event
Post by: Lane on August 11, 2014, 08:02:05 PM
The only thing that should be marked as a trigger is the actual trigger zone itself, the other colliders should just act as normal colliders.

Have you checked this video out?
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 11, 2014, 08:42:41 PM
The only thing that should be marked as a trigger is the actual trigger zone itself, the other colliders should just act as normal colliders.

Have you checked this video out?

The same video where the actual boxed trigger isn't tagged? This is what I don't understand, whether the clear box trigger is tagged or not, I still get the same results.
Title: Re: Make a game object trigger a event
Post by: Lane on August 11, 2014, 08:51:21 PM
Do you have some unique tagging setup on your objects?
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 11, 2014, 08:56:16 PM
None, except the trigger.
Title: Re: Make a game object trigger a event
Post by: Lane on August 11, 2014, 09:01:32 PM
If the GameObject is not marked as a trigger, and the trigger zone is marked as a trigger, and there are no custom tag filters defined in the trigger action then it should work.

Can you post a repro scene?
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 12, 2014, 12:44:19 AM
If the GameObject is not marked as a trigger, and the trigger zone is marked as a trigger, and there are no custom tag filters defined in the trigger action then it should work.

Can you post a repro scene?

This is what I have for the main FSMs. And the mouse pic object just has a mouse pick action.

https://db.tt/Ca9WZG9J

https://db.tt/ifdPOCb3

https://db.tt/ZUPqiFnU

https://db.tt/rZ71RiuQ

https://db.tt/8aoRawP0

https://db.tt/gTzdnDCC

https://db.tt/F8cyxIUp
Title: Re: Make a game object trigger a event
Post by: Lane on August 12, 2014, 06:57:06 AM
Can you post the scene?
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 12, 2014, 04:52:13 PM
Can you post the scene?

Does this work on your end?

https://db.tt/4zAYzyt6 (https://db.tt/4zAYzyt6)
Title: Re: Make a game object trigger a event
Post by: Red on August 12, 2014, 06:35:41 PM
Try adding a rigidbody to the object you want the trigger to detect. You can turn the gravity off (and even turn off the rotations so that it won't turn and tumble if hit by another object.) but as best as I can tell by reading this page (http://docs.unity3d.com/Manual/CollidersOverview.html) since a trigger is a physics component, it needs to have something that links it up to the physics systems.

Without the components that tell the engine that it's a physics thing, it's likey that it simply doesn't know how to deal with it when it interacts with the physics things.
Title: Re: Make a game object trigger a event
Post by: coffeeANDsoda on August 13, 2014, 10:13:18 PM
Added a rigidbody, works now. Thanks.