Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
Does you GameObject have a collider?
-
Does you GameObject have a collider?
Yes, with is Trigger turned on. Plus, did the same thing with the 3rd Person Controller prefab.
-
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 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.
-
Do you have some unique tagging setup on your objects?
-
None, except the trigger.
-
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?
-
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
-
Can you post the scene?
-
Can you post the scene?
Does this work on your end?
https://db.tt/4zAYzyt6 (https://db.tt/4zAYzyt6)
-
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.
-
Added a rigidbody, works now. Thanks.