Search Unity

RigidBody2d - Constant Force

Discussion in '2D' started by singalmobile17, Apr 21, 2017.

  1. singalmobile17

    singalmobile17

    Joined:
    Apr 21, 2017
    Posts:
    1
    I have a rigid body with a collider attached to. No gravity in the world. Applying a constant force 2d along x and y axis is not making the object move in straight lines. What should i do to make the object move in straight lines?

    I have wall objects at the ends of the screens. they also have a collider attached to them.

    Please help.
     
  2. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    What kind of movement are you observing? Small code sample?