Search Unity

Object only affected by gravity

Discussion in 'Physics' started by Kobaltic1, Oct 23, 2019.

  1. Kobaltic1

    Kobaltic1

    Joined:
    Jan 22, 2015
    Posts:
    183
    I have an object that I only want to be affected by gravity. I just want it to drop straight down when there is nothing underneath it. I applied a rigidbody. Here are my settings:
    upload_2019-10-22_21-22-43.png

    The problem is that the object is still affected by outside forces. I do not want anything to affect the object except gravity. How do I fix it? Thanks
     
  2. Kobaltic1

    Kobaltic1

    Joined:
    Jan 22, 2015
    Posts:
    183
    Still looking for an answer to this.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,500
    For what you're trying to achieve you're using a dynamic body but trying to turn all its features off. You're far better off using a kinematic body and applying "gravity" yourself which is really just modifying the Y position by the global gravity vector. The kinematic body will never be affected by external forces and you have full control.
     
    andreyefimov2010 likes this.