transform.eulerangles will get you the vector3 you see in the editor
How would I implement it in my code, it keeps saying that I can't add a Vector3 to a float. This is my new code.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
private Rigidbody2D rb2D;
private float thrust = 10f;
// Start is called before the first frame update
void Start()
{
transform.position = new Vector3(0f, 0f, 0f);
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown("w"))
{
print("Test");
}
if (Input.GetKeyDown("a")){
transform.eulerAngles = new Vector3 (0f, 0f, +10f);
}
}
}