ドキュメント

Unity Engine

Unity Engine

externalAcceleration

A constant, external acceleration applied to the cloth.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ClothModule
public Vector3 externalAcceleration { get; set; }

Remarks

Use this to simulate constant forces on the cloth, such as wind waving a flag. Additional Resources: Cloth.randomAcceleration.

Examples

using UnityEngine;public class Example : MonoBehaviour{ // Make this cloth fall at half speed (if is affected by gravity). void Start() { GetComponent<Cloth>().externalAcceleration = -Physics.gravity / 2; }}