W
W
WasTabon2021-01-04 17:35:01
Unity
WasTabon, 2021-01-04 17:35:01

Why is the platform not moving up?

private void Update()
    {
        rb2d.MovePosition(Vector2.up * speed * Time.deltaTime);
    }

She simply twitches in place. In Rigidbody2D Put Kinematic

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-01-04
@WasTabon

Because MovePosition takes a new position as an argument. Here you have it and moved to Vector2.up * speed * Time.deltaTime and rubs there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question