- Home /
Question by
Mamta_kh · Jan 24, 2020 at 10:06 AM ·
physics settingsobject movement
why my object is moving first and then it falls down?
I applied gravity on my object and unselect the is Kinematic option. And I add movement to my object when it will collide with other object. But my object is moving first and after completing movement it falls down .I actually want my object first fall down and then on ground it should move to the target position . Pls anyone help.
Comment
Answer by Le-Capitaine · Jan 24, 2020 at 02:23 PM
Can you be more specific? The way things are looking right now, I'd recommend a raycast, but it's hard to make out what's happening.
Answer by Skeasy · Jan 24, 2020 at 02:57 PM
Hmm, did you write your code like this?
rb.velocity = new Vector2(0, moveVerti * moveSpeed);
(i mean the 0)
If this is the case, the problem would be that you neutralize any horizontal movement.