Search Unity

How to add weight to the objects

Discussion in 'Physics' started by mero6191, Jun 10, 2020.

  1. mero6191

    mero6191

    Joined:
    Dec 29, 2018
    Posts:
    15
    Hi, I am struggling on the physics right now because I am trying to have two objects in different weights but I can't figured it out how I tried to change the mass of them (I know mass and weight are not the same thing)
    There is a way to do it manually with disabling the gravity on Rigidbody and adding it manually by hand with the correct equation that suits to my project but is there a built-in way to set weights of the Rigidbodies in unity?
     
  2. dahiyabunty1

    dahiyabunty1

    Joined:
    Jan 22, 2020
    Posts:
    68
    getcomponent<rigidbody>().mass = 200;