I have 2 triggers and a platform moving between them. the script is working for the most part except for one odd error. the platform wont detect the triggers unless it touches them from above. the platform moves up by default and when touching the trigger above it should go down however it just keeps going up. if i force it to go down and it touches the trigger it just passed it changes back to moving up as i told it to. anyone know why the triggers only get detected from below?
Answer by KeithK
Apr 03, 2011 at 04:21 PM
On the assumption that you are using Mesh Colliders for your triggers, you will have to make them Convex in the inspector for them to pick up collisions from the front and back.
yes i am using mesh colliders. and how do i make them convex?
Select your triggers in the Unity Editor. In the Inspector window under the component "Mesh Collider", check the box next to "Convex".
ok i figured out the convex part but it didnt fix it. it still doesnt detect if it hits the triggers from below
Your platform, is it also using a Mesh Collider? Have you tried setting it to Convex as well?
the platform had a box collider but i tried with a convex mesh but still nothing
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
To help users post good questions and use the site effectively we have posted a user guide. Please check it out.
Answers and Comments
No one has followed this question yet.
Setting Scroll View Width GUILayout
Show "Score:5" on my screen, how?
The name 'Joystick' does not denote a valid type ('not found')
Time.timescale cause extreme lag?