Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by cpp_fanatic · Feb 03, 2011 at 08:04 PM · rigidbodycollidertrigger

OnTriggerEnter problem

Hello! I have two objects. First object is moving through another one. But I have not seen calling of either OnTriggerEnter or OnTriggerExit. Why it could be ?

I can send you my project. It is very simple project.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Vinpasso · Feb 03, 2011 at 08:51 PM

Ok ive located your problem:

You are trying to collide two meshes with each other. However unity will only accept mesh on mesh collisions if the convex check mark is activated on each collider (this limits mesh collider vertices for performance). So if you go onto your two mesh colliders then you see the convex parameter under the trigger parameter. Now run your Application.

Hope this Helps Vinpasso

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cpp_fanatic · Feb 03, 2011 at 08:58 PM 1
Share

Yes. I know about it. But, in this case my big object is like a parallelepiped without the hole. This is a big problem. Because I don't want to have a collision when my small object goes through the hole.

avatar image Vinpasso · Feb 03, 2011 at 09:16 PM 0
Share

I have two harder ways to do it but im sure somebody knows a simpler solution

avatar image cpp_fanatic · Feb 03, 2011 at 09:32 PM 0
Share

Could you tell me your ideas ? Let's try to get solution together! I think this problem is not only $$anonymous$$e.

avatar image Vinpasso · Feb 03, 2011 at 10:24 PM 0
Share

what I think would be possible is have a box collider but then a sub cylindrical collider which turns the collider register off when the cube OnTriggerEnters and turns it on again in OnTriggerExit

avatar image
0

Answer by Vinpasso · Feb 03, 2011 at 08:14 PM

Could it be that both of your colliders are actual Colliders? In this case you would need to mark the "Trigger" check mark in the Inspector of each object or use OnCollision Enter and Exit instead depending on the behaviour you want.

In case this is not a solution i am happy for you to send me the files here: vbode@poach-studios.com

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image cpp_fanatic · Feb 03, 2011 at 08:40 PM 0
Share

I have sent my project. Thanks for help.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

OnTrigger's Moving Behaviour with Other Triggers 0 Answers

Should Physics.Raycast() hit a Trigger on a disabled GameObject? 1 Answer

Kinematic Rigidbody Collider not colliding with Static Trigger Collider 3 Answers

Access other collider without use of Trigger collider. 1 Answer

Trigger Collision with Character Controller 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges