Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

OnCharacterColliderHit

Discussion in 'Editor & General Support' started by RedJester, May 27, 2009.

  1. RedJester

    RedJester

    Joined:
    May 21, 2009
    Posts:
    2
    I'm making a 2D game that does not have gravity in it. The characters move in X and Y (up, down, side, side) and do not move along Z. I have this working with the platformer control from the tutorial.

    However, I have run into a strange problem. I have created a boxCollider + a rigidbody. When I push my character into it from the sides or from above, OnCharacterColliderHit fires, and the box starts moving in that direction.

    When I hit the rigidbody from below it doesn't do anything. No OnCharacterColliderHit event fires, however I've checked my collisionflags and they say hey, you hit something from below!

    Anyone have any idea why its not firing that event?