PlayMaker Help & Tips > PlayMaker Help

"Get Trigger Event" not working when on top of collider

(1/2) > >>

Breadman:
I have a large cube which is used in puzzles. It has a trigger attached to it - once the player pushes it or touches it, the FSM begins to fade the cube's opacity and eventually resets its position.

The large cube and FSM are parented to another invisible cube, which controls the physics and rigidbody of the puzzle cube. Everything works great, when the player pushes the cube from the side, it moves and starts to fade.

However, when the character is standing on top of the cube, the fade event doesn't trigger. I even made the collider unreasonably large to see if maybe the character collider just wan't intersecting with it, but still no luck. Do character colliders not sent collision events to colliders that are directly below them? Or perhaps I'm doing something else wrong?

jeanfabre:
Hi,

 Not too sure, you are saying it's trigger on the same collider from the side but not the top?

bye,

 Jean

Breadman:
Yeah - the "trigger event" action fires an event properly when the character touches the collider from the side, but not from the top.

jeanfabre:
Hi,

 It's likely that your capsule collider is then not contacting at all, maybe your character has an offset in height? have you checked visually what's goind on? switch to a orth view in the scene view ( not the game view) and come really close to see where is the character collider compare to the top side of your trigger.

bye,

 Jean

Breadman:
Hi Jean,

I suspected that might be the case, and I made the top portion of the object's collider go way above the actual object, still no trigger detected, even though my character was basically inside of the collider area.

I will keep debugging :D

Navigation

[0] Message Index

[#] Next page

Go to full version