(Created page with "=Properties= {{ScriptFunction|float|BendingStiffness|{get; set;}|Bending stiffness of cloth.|5= Scene = Space.Scene<br> Skeleton = Scene.PlayerAvatar.Skeleton<br> Clothing =...") |
|||
Line 24: | Line 24: | ||
{{ScriptFunction|bool|Enabled|{get; set;}|Enable or disable components.|5= | {{ScriptFunction|bool|Enabled|{get; set;}|Enable or disable components.|5= | ||
− | + | Space.Host.ExecutingObject.Cloth.Enabled = false|6=<pre>--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)</pre> | ||
}} | }} | ||
Bending stiffness of cloth.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Increase the mass of colliding particles.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Enable continuous collision to improve collision stability.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Clothing.EnableContinuousCollision = true
Enable or disable components.
--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)
A constant external acceleration applied to the cloth.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Clothing.ExternalAcceleration = Vector.New(3,4,5)
Return the friction of the cloth when colliding with the character.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
A constant external acceleration applied to the cloth.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Clothing.ExternalAcceleration = Vector.New(3,4,5)
Stretching stiffness of the cloth.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
Stretching stiffness of the cloth.
Skeleton = Scene.PlayerAvatar.Skeleton
Clothing = Skeleton.Find("Clothing IDXXXXX ( )")
|