# SCloth

**الأعضاء** 10

|       |                                                         |                                                                     |
| ----- | ------------------------------------------------------- | ------------------------------------------------------------------- |
| خاصية | [BendingStiffness](#bendingstiffness)                   | Bending stiffness of cloth.                                         |
| خاصية | [CollisionMassScale](#collisionmassscale)               | Increase the mass of colliding particles.                           |
| خاصية | [EnableContinuousCollision](#enablecontinuouscollision) | Enable continuous collision to improve collision stability.         |
| خاصية | [Enabled](#enabled)                                     | Enable or disable components.                                       |
| خاصية | [ExternalAcceleration](#externalacceleration)           | A constant external acceleration applied to the cloth.              |
| خاصية | [Friction](#friction)                                   | Return the friction of the cloth when colliding with the character. |
| خاصية | [RandomAcceleration](#randomacceleration)               | A constant external acceleration applied to the cloth.              |
| خاصية | [StretchingStiffness](#stretchingstiffness)             | Stretching stiffness of the cloth.                                  |
| خاصية | [UseGravity](#usegravity)                               | Stretching stiffness of the cloth.                                  |
| خاصية | [GameObject](#gameobject)                               | –                                                                   |

## الخصائص

### BendingStiffness

float BendingStiffness {get; set; }

Bending stiffness of cloth.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.BendingStiffness = 0.5

```

### CollisionMassScale

float CollisionMassScale {get; set; }

Increase the mass of colliding particles.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.CollisionMassScale = 0.5

```

### EnableContinuousCollision

bool EnableContinuousCollision {get; set; }

Enable continuous collision to improve collision stability.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.EnableContinuousCollision = true

```

### Enabled

bool Enabled {get; set; }

Enable or disable components.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.Enabled = false

```

**Lua**

```lua
--clicking this object will Enable/Disable it's Cloth component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.Cloth

OnClick = function()
component.Enabled =  not component.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)

```

### ExternalAcceleration

[SVector](/docs/ar/scripting/client-scripting-api-reference/types/svector.md) ExternalAcceleration {get; set; }

A constant external acceleration applied to the cloth.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.ExternalAcceleration = Vector.New(2,4,5)

```

### Friction

float Friction {get; set; }

Return the friction of the cloth when colliding with the character.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.Friction = 0.8

```

### RandomAcceleration

[SVector](/docs/ar/scripting/client-scripting-api-reference/types/svector.md) RandomAcceleration {get; set; }

A constant external acceleration applied to the cloth.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.RandomAcceleration = Vector.New(2,4,5)

```

### StretchingStiffness

float StretchingStiffness {get; set; }

Stretching stiffness of the cloth.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.StretchingStiffness = 0.6

```

### UseGravity

bool UseGravity {get; set; }

Stretching stiffness of the cloth.

مثال

**Lua**

```lua
Space.Host.ExecutingObject.Cloth.UseGravity = true

```

### GameObject

[SGameObject](/docs/ar/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

مثال

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.Cloth.GameObject

```
