public static Vector3 gravity ;

Description

The gravity applied to all rigid bodies in the Scene.

可以使用刚体的 useGravity 属性为单个刚体关闭重力。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Physics.gravity = new Vector3(0, -1.0F, 0); } }

ParticleSystem.gravityModifiers 已弃用。