SCloth
Index
Properties Index
Property Name
Space.Host.ExecutingObject.Cloth.BendingStiffness = 0.5Space.Host.ExecutingObject.Cloth.CollisionMassScale = 0.5Space.Host.ExecutingObject.Cloth.EnableContinuousCollision = trueSpace.Host.ExecutingObject.Cloth.Enabled = false--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)Space.Host.ExecutingObject.Cloth.ExternalAcceleration = Vector.New(2,4,5)Space.Host.ExecutingObject.Cloth.Friction = 0.8Space.Host.ExecutingObject.Cloth.RandomAcceleration = Vector.New(2,4,5)Space.Host.ExecutingObject.Cloth.StretchingStiffness = 0.6Space.Host.ExecutingObject.Cloth.UseGravity = truetheGameObject = Space.Host.ExecutingObject.Cloth.GameObject