Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

collision detection tutorial?

Discussion in 'Community Learning & Teaching' started by tomcat, Jul 20, 2009.

  1. tomcat

    tomcat

    Joined:
    Nov 16, 2008
    Posts:
    66
    Sorry if I am posting in the wrong forum as I dont know what is correct forum for this and getting so frustrated with collision detection :( . Does anybody know if there is a collision detection tutorial covering rigid bodies andcolliders without rigid bodies?

    If I am posting to the wrong forum, please advise where I should post this.

    thanks
    tomcat
     
  2. Cu3e

    Cu3e

    Joined:
    Oct 27, 2008
    Posts:
    63
  3. tomcat

    tomcat

    Joined:
    Nov 16, 2008
    Posts:
    66
    Thanks. May be the matrix is helpful. I have an emptygame object (with a sphere collider) which is moving and want to detect collision with a static cube (which has a box collider and is rigide body). But I never get a collision (I use OnCollisionEnter to see if anything happens). If I make the emptyobject a rigidbody, it moves very very slowly so I removed it.

    tomcat
     
  4. tomcat

    tomcat

    Joined:
    Nov 16, 2008
    Posts:
    66
    Ok, using a combination of Mtrix and some experimentation I managed to solve it. Thanks for your help.

    tomcat
     
  5. castelock

    castelock

    Joined:
    Oct 27, 2013
    Posts:
    15
    It had been great, if you had written, how you got detect the collision, because I have a similar problem :(
     
  6. konkol

    konkol

    Joined:
    Apr 6, 2011
    Posts:
    33
    You have to have rigidbody on MOVING object ( and collider too ). You may want to check all FreezePosition/FreezeRotation fields under Constraints section of rigidbody to avoid automatic movement modifications.
     
    Last edited: Oct 27, 2013
  7. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,009
    Check out my spaceshooter series. I go over OnTriggerEnter.

    Private message me for specific questions with what you're trying todo and I can provide you with an example.

    Best,

    Jon