Search Unity

Collision

Discussion in 'Scripting' started by andrewc, Sep 20, 2008.

  1. andrewc

    andrewc

    Joined:
    Aug 20, 2008
    Posts:
    180
    I have gotten a door script to work but if the player is standing in the doorway the door will pass through them. How can I query if my door object is colliding with the player in the middle of a custom door open/close function. The door is not a rigidbody but has a box collider.

    Thanks
     
  2. OXYGEN

    OXYGEN

    Guest

    Joined:
    Mar 16, 2008
    Posts:
    1,101
    Hi assighn a box collider to the other object and a rigid body