Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

how do i make an object with a kinematic rigidbody collide.

Discussion in 'Getting Started' started by volcanicfire33, Jan 30, 2020.

  1. volcanicfire33

    volcanicfire33

    Joined:
    Jan 28, 2020
    Posts:
    9
    Hi, I am making a 2D top down shooter game and im trying to make my player not go through some walls.
    My player has a Kinematic rigidbody2D and I need it to be kinematic otherwise the gun pushes the player around.
     
  2. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    Kinematic objects, by definition, are not able to be restricted by the physics system. I think you're thinking about the relationship wrong. Your player should not be kinematic. The player's gun should be.
     
    volcanicfire33 and Bill_Martini like this.
  3. volcanicfire33

    volcanicfire33

    Joined:
    Jan 28, 2020
    Posts:
    9
    thank you very much
     
    Schneider21 likes this.