Unity Community


Results 1 to 7 of 7

  1. Posts
    66

    collision detection tutorial?

    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. Posts
    63


  3. 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. Posts
    66
    Ok, using a combination of Mtrix and some experimentation I managed to solve it. Thanks for your help.

    tomcat


  5. Posts
    1
    It had been great, if you had written, how you got detect the collision, because I have a similar problem


  6. Posts
    28
    Quote Originally Posted by castelock View Post
    It had been great, if you had written, how you got detect the collision, because I have a similar problem
    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 by konkol; 10-27-2013 at 01:39 PM.


  7. Posts
    395
    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
    "The Key to Understanding is by Interactive Learning."

    Digital Gaming Institute: http://DigitalGamingInstitute.com

    My Interactive Tutorial Series: http://forum.unity3d.com/threads/175...-C-for-Unity3D

    Learn the Fundamentals of C# programming: http://forum.unity3d.com/threads/185...utorial-Series

    Private C# Game Programming Lessons: http://forum.unity3d.com/threads/201...gramming-tutor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •