• 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
0
Question by kmbale · Nov 25, 2015 at 08:53 PM · collisioncolliderevent-handling

Problem with collision detection

I am on my fourth Unity project. In the first three, I used RigidBody onCollision type detection, as well as onTrigger for certain objects in the environment. With the fourth project, the scripts no longer receive the onTrigger or onCollision events. I can push objects around with the player but the events don't trigger.

Thinking I had made some mistake, I started a brand new project and added a capsule and a cube. Each with isTrigger on a capsule and box collider respectively. There is a terrain which is completely flat. The cube runs into the capsule collider. No events. Such to rigidbody on cube and none on capsule. No event. Put rigidbodies on both. No events. The scripts have onTrigger and onCollision enter event handlers that print the name of the other object. When I check the previous projects, they work fine.

I have no idea what I could have done to disable event detection. The projects have an EventSystem object that is active but it is not sending any messages. What should I check? Where should I look?

Thanks for any input!

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to allow collisions on a Child of a Non Kinematic RigidBody ? 1 Answer

No Collision in 2d Scene 0 Answers

Collision detection and prevention between a rigid body and box collider 0 Answers

Using shadows as Triggers? 1 Answer

How to disable collision detection while a UI Panel is enabled 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges