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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

bg and fps controller

Discussion in 'Scripting' started by ganixx, Aug 6, 2015.

  1. ganixx

    ganixx

    Joined:
    Feb 2, 2015
    Posts:
    29
    hi
    i have the next problem:
    i have a big cube use like a wall, this cube have the rigidbody and kinmatic coponents and is move using a translate

    but when the wall touch the fps controller , the fps controller is expulse something like flying. why ?
    what can i do to make the wall push the fps controller
     
  2. phoda

    phoda

    Joined:
    Nov 11, 2014
    Posts:
    384
    because kinematic doesnt have physics, disable kinematic or find way with scripts which would be hard if you want realism
     
  3. ganixx

    ganixx

    Joined:
    Feb 2, 2015
    Posts:
    29
    ok tks
     
  4. ganixx

    ganixx

    Joined:
    Feb 2, 2015
    Posts:
    29
    but if i disable the kinematic when the wall touch something, ex box, the box will not move, any idea?
     
  5. phoda

    phoda

    Joined:
    Nov 11, 2014
    Posts:
    384
    both need to be kinematic disabled and both need to have rigidbody and collider.