Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SkinnedCloth.worldVelocityScale

Switch to Manual
var worldVelocityScale: float;
float worldVelocityScale;
worldVelocityScale as float

Description

How much world-space movement of the character will affect cloth vertices.

The higher this value is, the more the cloth will move as a reaction to world space movement of the GameObject. Basically, this defines the air friction of the SkinnedCloth.

	GetComponent(SkinnedCloth).worldVelocityScale = 0.5;
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        GetComponent<SkinnedCloth>().worldVelocityScale = 0.5F;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		GetComponent[of SkinnedCloth]().worldVelocityScale = 0.5F