Use this function for retrieving the global gravity vector. A sprite canvas layer must be open.
Related: SetGravity2D