How to determine if my plane is facing downards (unityscript)

Hi, I have a plane build, and I want it to accelerate when it faces downwards through unityscript. Using local rotation isnt reliable, since it changes all the time. Is there a way of using global rotation to determine if it is facing downwards?

Global rotation is returned by transform.rotation.

You can check if it’s faceing downwards by checking transform.forward.y. It should be: 0 - when plane is leveled and -1 when facing downwards.

Try this:

 if(Vector3.Dot(transform.up, Vector3.up) < 0)
 {
     //Facing downwards
 }