0
How to make a character move using unity
idk what I'm doing
2 Réponses
0
hi JP Macrigiane
this link should help
https://m.youtube.com/watch?v=YfIOPWuUjn8
also check out the rest of his videos
P.s if you get confused try this code it should work
transform.Translate( 5, 0, 0);
//x y z position
that will move the object to the right.
i hope this helps
0
Create a charactor.. Add component.. C# script... Then code it
There are a number of ways. You can move by moving the transform..
transform.position = new Vector3(transform.position.x+0.5f, transform.position.y, transform.position.z);
You could add force to a rigidbody..
private Rigidbody rb;
rb=GetComponent<Rigidbody>();
rb.addforce(transform.forword * speed * Time.DeltaTime;