this is what my code looks like atm, and i wanna change truerotation to the gameobjects rotation, but changed by(90,0,0): `
public GameObject Capsule;
public Quaternion truerotation;
// Start is called before the first frame update
void Start()
{
Capsule = GameObject.Find("Capsule");
}
// Update is called once per frame
void Update()
{//weird engine bullshit
truerotation = this.gameObject.transform.rotation;
//attacks
if (Input.GetKey("mouse 0"))
{
Capsule = Instantiate(Capsule ,this.gameObject.transform.position, truerotation) as GameObject;
}
}