PlayMaker News > General Discussion

meshCollider as Triger!

(1/1)

Uttpd:
Trigger Enter; Trigger Exit; Trigger Stay and Trigger Event wont work properly on mesh colliders? 

They "trigger" while standing still over the "line" so going in/ out triggers the event and resets it.

They do work fine with Box Colliders. I dont know wish to blame Unity, Playmaker or the 2DToolkit Collider Tool.  ???
 





jeanfabre:
Hi,

 Some mesh colliders do not work properly, I had that issue not so long ago, but I admit I was really messing with it, the mesh was very complex, concave, and I was trying to make a collider to conform to that, but I fixed it, by going for convex and change the collision settings like smooth sphere collisions and stuff.

 I never had a problem where actually playmaker was not triggering the events where it should, it's always been a case where it was not working in the first place even with a standard script, aka ylways been a prblem with the set up of the collider and gameObject itself.

bye,

 Jean

Uttpd:
yep, definitively not an exact science!

Finally got it working marking it convex.. But add to put a "set Property" to make it convex, on trigger, in game -- If set in editor it would uncheck the box when on game start  ???

jeanfabre:
Hi,

 This is very odd, are you sure nothing is running behind your back? I never encountered such behavior.

bye,

 Jean

Uttpd:
Just sorted it out,(my brain must have worked on it during the night)  The collider was made in  the 2KD editor and since it was´t marked as convex there it would revert back on game-start.

PS: Now "just" need to sort a way to access the alpha value on the material and move up to the next wall.

Navigation

[0] Message Index

Go to full version