Cloth

class in UnityEngine

/

Inherits from:Component

Switch to Manual

Description

The Cloth class provides an interface to cloth simulation physics.

Variables

bendingStiffnessЖёсткость сгибания ткани.
capsuleCollidersAn array of CapsuleColliders which this Cloth instance should collide with.
clothSolverFrequencyNumber of cloth solver iterations per second.
coefficientsThe cloth skinning coefficients used to set up how the cloth interacts with the skinned mesh.
collisionMassScaleHow much to increase mass of colliding particles.
dampingЗаглушить движение ткани.
enableContinuousCollisionEnable continuous collision to improve collision stability.
enabledВключена ли ткань?
externalAccelerationКонстанта, внешнее ускорение, применяемое к ткани.
frictionThe friction of the cloth when colliding with the character.
normalsТекущие нормали объекта ткани.
randomAccelerationСлучайное, внешнее ускорение примененное к ткани.
selfCollisionDistanceMinimum distance at which two cloth particles repel each other (default: 0.0).
selfCollisionStiffnessSelf-collision stiffness defines how strong the separating impulse should be for colliding particles.
sleepThresholdCloth's sleep threshold.
sphereCollidersAn array of ClothSphereColliderPairs which this Cloth instance should collide with.
stiffnessFrequencySets the stiffness frequency parameter.
stretchingStiffnessЖесткость растягивания ткани.
useGravityДолжна ли гравитация влиять на симуляцию ткани?
useTethersUse Tether Anchors.
useVirtualParticlesAdd one virtual particle per triangle to improve collision stability.
verticesТекущие позиции вершин объекта ткани.
worldAccelerationScaleHow much world-space acceleration of the character will affect cloth vertices.
worldVelocityScaleHow much world-space movement of the character will affect cloth vertices.

Public Functions

ClearTransformMotionClear the pending transform changes from affecting the cloth simulation.
GetSelfAndInterCollisionIndicesGet list of particles to be used for self and inter collision.
GetVirtualParticleIndicesGet list of indices to be used when generating virtual particles.
GetVirtualParticleWeightsGet weights to be used when generating virtual particles for cloth.
SetEnabledFadingFade the cloth simulation in or out.
SetSelfAndInterCollisionIndicesThis allows you to set the cloth indices used for self and inter collision.
SetVirtualParticleIndicesSet indices to use when generating virtual particles.
SetVirtualParticleWeightsSets weights to be used when generating virtual particles for cloth.

Inherited members

Variables

gameObjectИгровой объект к которому прикреплён данный компонент. Компонент всегда прикреплён к игровому объекту.
tagТег данного игрового объекта.
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameThe name of the object.

Public Functions

BroadcastMessageВызывает метод названный methodName на каждом MonoBehaviour этого game object-а или любого из его потомков.
CompareTagПомечен ли данный игровой объект тегом tag?
GetComponentВозвращает компонент типа type, если он прикреплен к игровому объекту и null, если не прикреплен.
GetComponentInChildrenВозвращает компонент типа type в GameObject или некоторого его потомка через поиск в глубину.
GetComponentInParentВозвращает все компоненты типа type из GameObject'а или из любого его родителя.
GetComponentsВозвращает все компоненты типа type в GameObject.
GetComponentsInChildrenВозвращает все компоненты типа type в GameObject или любому из его потомков.
GetComponentsInParentВозвращает все компоненты типа type в GameObject или любому из его родителей.
SendMessageВызывает метод с названием methodName в каждом MonoBehaviour в этом игровом объекте.
SendMessageUpwardsВызывает метод с именем methodName в каждом MonoBehaviour в этом игровом объекте и в каждом предке поведения.
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Static Functions

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateClones the object original and returns the clone.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.