Search Unity

OnCollisionEnter

Discussion in 'Editor & General Support' started by chrisp, Sep 25, 2006.

  1. chrisp

    chrisp

    Joined:
    Sep 25, 2006
    Posts:
    1
    I'm doing the FPS 1 tutorial and I don't have Maya, so I created a simple level in Cinema 4D to use. I'm doing the part with the missle and I'm having some strange results. Most of the time my projectile will just go right through the wall and sometimes even the floor. I'm wondering if I modelled the level wrong or should I not use the approach from the tutorial?

    Thanks,
    Chris
     
  2. AaronC

    AaronC

    Joined:
    Mar 6, 2006
    Posts:
    3,552
    Did u make sure everything has collision meshes?
    If I recall, that script has a "destroy projectile-instantiate explosion" thing goin on. If you dont also have an explosion waiting to be loaded, funny things happen
    AC
     
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    What kind of collider does the rocket have?

    It usually helps to make a box collider and then make the box collider longer than the actual collision geometry.