Hi! I’m making a platformer game with custom gravity, and I need to have a Vector3 that is always rotated 90 degrees from another Vector3. gravityUp, gravityRight, and gravityForward are all vectors. Here is the script:
else
{
gravityUp = (transform.position - Gravity.transform.position).normalized;
gravityRight = gravityUp;
gravityForward = gravityUp;
}
I just need to be able to rotate gravityRight and gravityForward by 90 degrees along the X and Z axis. I basically want it to say gravityRight = gravityUp + 90 degrees, but I don’t know how to do that. Thank you!