How to move a cube in unity, quick and east
Part 1:
https://youtu.be/5IaDZr7dhrICODE:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour
{
public float moveSpeed;
// Start is called before the first frame update
void Start()
{
moveSpeed = 11f;
}
// Update is called once per frame
void Update()
{
transform.Translate(moveSpeed*Input.GetAxis("Horizontal")*Time.deltaTime,0f,moveSpeed*Input.GetAxis("Vertical")*Time.deltaTime);
}
}
I do not own or claim rights of any of the songs used in this video. All Credits to the respected artist(s) of the track(s).
|----------------------------------------------------------------------------------------------------------------|
Screen Recorder: OBS
Editing Programme: Sony Vegas 14
|----------------------------------------------------------------------------------------------------------------|
My Website:
https://agenayt.wixsite.com/agenaMy Patreon:
https://www.patreon.com/user?u=6214802Discord: Agena_YT#0496
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
➜If you want to see more, go smash that like button!
...
https://www.youtube.com/watch?v=E-4kAwGXbF0