Pummel Party

Pummel Party

Destroy friendships in the Pummel Party Workshop
Build new Boards and Minigames! Share your creations and discover other pummelers friendship ruining handiwork!
Learn More
Amoliski 26 Dec, 2022 @ 11:24am
Trigger with custom collider
I want to detect when a player stands on an object.
I have a hexagon object imported, and a second, taller hexagon mesh to use as a trigger.

I added the hexagon object, then added a trigger to it. I set the trigger shape to be a custom collider, but I can't figure out how to specify which collider to use for the trigger. I tried adding a mesh collider (since the note says the custom collider requires a collider component to be on the object) but now the player just stands on the mesh collider instead of passing through and triggering the trigger.

I checked the wiki, but it didn't mention the custom collider option in the trigger shape section.

https://i.imgur.com/Uu2i6pM.png
< >
Showing 1-1 of 1 comments
Charlton  [developer] 5 8 Jan, 2023 @ 1:22pm 
Hi there, sorry for the late response.

Triggers using custom colliders can only use "Trigger On Hit" and are treated as solid objects. It's not optimal for your situation but you'll need to use one of the other trigger shapes as those support Trigger On Enter/Exit/Stay. Maybe you could create a hexagon from 3 overlapping/rotated box triggers, or use a single capsule trigger to roughly match the hexagon shape?

The wiki's been updated to include info on the custom collider trigger shape, thanks for pointing out that it wasn't on there!
< >
Showing 1-1 of 1 comments
Per page: 1530 50