---
tags:
    - "Physics, 3D, Kinematic"
---

# Cloth World Acceleration Scale

[Physics 3D](../index.md) / [Cloth](index.md) / **Cloth World Acceleration Scale**

## Description

Compares the World Acceleration Scale property of Cloth component to another value

## Parameters

| Name | Description |
| :--- | :---------- |
| Cloth |  |
| Compare |  |
| Value |  |

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Cloth World Acceleration Scale")]
    [Category("Physics 3D/Cloth/World Acceleration Scale")]
    [Description("Compares the World Acceleration Scale property of Cloth component to another value")]
    
    [Image(typeof(IconShirt), ColorTheme.Type.Lime)]
    [Keywords("Physics, 3D, Kinematic")]
    
    [Parameter("Cloth")]
    [Parameter("Compare")]
    [Parameter("Value")]
    
    [Serializable]
    public class GenConditionNumber_Cloth_CheckWorldAccelerationScale : Condition
    {
        [SerializeField] private GetGameObject m_Cloth = new GetGameObject(
            new GenTypeGameObject_Cloth()
        );
        
        [SerializeField] private CompareNumber m_Compare = new CompareNumber();
        
        [SerializeField] private GetNumber m_Value = new GetNumber();
        
        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("World Acceleration Scale");
            return $"{this.m_Cloth} {member} {this.m_Compare} {this.m_Value}";
        }
        
        protected override bool Run(Args args)
        {
            Cloth component = this.m_Cloth.Get<Cloth>(args);
            if (component == null) return false;
            
            return this.m_Compare.Compare(component.worldAccelerationScale, (float) this.m_Value.Get(args));
        }
    }
}


```

