SCloth
ClientComposants
Dans cette classeBendingStiffness
Membres 10
| Propriété | BendingStiffness | Bending stiffness of cloth. |
| Propriété | CollisionMassScale | Increase the mass of colliding particles. |
| Propriété | EnableContinuousCollision | Enable continuous collision to improve collision stability. |
| Propriété | Enabled | Enable or disable components. |
| Propriété | ExternalAcceleration | A constant external acceleration applied to the cloth. |
| Propriété | Friction | Return the friction of the cloth when colliding with the character. |
| Propriété | RandomAcceleration | A constant external acceleration applied to the cloth. |
| Propriété | StretchingStiffness | Stretching stiffness of the cloth. |
| Propriété | UseGravity | Stretching stiffness of the cloth. |
| Propriété | GameObject | – |
Propriétés
BendingStiffness
float BendingStiffness {get; set; }
Bending stiffness of cloth.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.BendingStiffness = 0.5
CollisionMassScale
float CollisionMassScale {get; set; }
Increase the mass of colliding particles.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.CollisionMassScale = 0.5
EnableContinuousCollision
bool EnableContinuousCollision {get; set; }
Enable continuous collision to improve collision stability.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.EnableContinuousCollision = true
Enabled
bool Enabled {get; set; }
Enable or disable components.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.Enabled = false
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
A constant external acceleration applied to the cloth.
Exemple
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.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.Friction = 0.8
RandomAcceleration
A constant external acceleration applied to the cloth.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.RandomAcceleration = Vector.New(2,4,5)
StretchingStiffness
float StretchingStiffness {get; set; }
Stretching stiffness of the cloth.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.StretchingStiffness = 0.6
UseGravity
bool UseGravity {get; set; }
Stretching stiffness of the cloth.
Exemple
Lua
Space.Host.ExecutingObject.Cloth.UseGravity = true
GameObjectLecture seule
Exemple
Lua
theGameObject = Space.Host.ExecutingObject.Cloth.GameObject



