https://docs.google.com/document/d/1sfptSrNR9Ap0u4En7Pxv8_JYQC5fHQ6P/edit?usp=drivesdk&ouid=113953159043080726965&rtpof=true&sd=true
Tuesday, 24 March 2026
Tuesday, 17 March 2026
Jsiaia
https://docs.google.com/document/d/17Zm-Og4owG9P8mGHJYbpMdrClQ_peBHE/edit?usp=drivesdk&ouid=113953159043080726965&rtpof=true&sd=true
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Movement : MonoBehaviour
{
public float xSpeed = 0.1f;
public float ySpeed = 0.1f;
public float zSpeed = 0.1f;
void Start()
{ // Start is called before the first frame update
}
void Update()
{ // Update is called once per frame
//move object in the RIGHT
if(Input.GetKey(KeyCode.D)){
transform.position += new Vector3(xSpeed, 0, 0);
}
//move object in the LEFT
if(Input.GetKey(KeyCode.A)){
transform.position -= new Vector3(xSpeed, 0, 0);
}
//move object in the UP
if(Input.GetKey(KeyCode.W)){
transform.position += new Vector3(0, ySpeed, 0);
}
//move object in the FORWARD
if(Input.GetKey(KeyCode.Z)){
transform.position += new Vector3(0, 0, zSpeed);
}
//move object in the BACKWORD
if(Input.GetKey(KeyCode.X)) {
transform.position -= new Vector3(0,0,zSpeed);
}
}
}

