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!
了解更多
Amoliski 2022 年 12 月 26 日 上午 11:24
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
< >
正在显示第 1 - 1 条,共 1 条留言
Charlton  [开发者] 5 2023 年 1 月 8 日 下午 1:22 
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!
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50