- Home /
Question by
sauravdhanola · Oct 08, 2019 at 05:09 PM ·
rigidbody2d2d-physicsplayer movementrigidbody.velocityrigidbody.moveposition
which is best method for 2d player movement
there are ways like :
transform.position += mov * Time.fixedDeltaTime * speed;
rb.velocity = mov * speed * Time.fixedFeltaTime;
rb.moveposition = rb.position + mov * speed * Time.fixedDeltaTime;
but which is best and realistic method to use ?
Comment
man, i re-edited your post.... Read the FAQ, learn to write scripts in the posts so everybody can read them...
Your question in ambiguous... depend on what you want to get...
Why not make some test and try them. You can always change it.