朱峰社區(qū)首頁 朱峰社區(qū)

搜索資源 注冊(cè)|登陸

等待

返回 展開菜單
按功能 按軟件

unity3d視頻教程

unity3d視頻教程

包含11節(jié)視頻教程

從零基礎(chǔ)學(xué)習(xí)unity3d游戲引擎,簡單易學(xué)的視頻教程,讓你快速掌握unity3d,并喜歡上游戲開發(fā)的樂趣。

關(guān)閉

Unity組件:Interactive Cloth 交互布料

關(guān)注:4108 留言:0 樓主:yinxiongyun 發(fā)帖時(shí)間:15年11月16日

yinxiongyun

普通會(huì)員

yinxiongyun

社區(qū)新人:1級(jí)

關(guān)注2727人

  • 性別

  • 年齡

    18

  • 積分

    1

  • 登陸

    1

  • 發(fā)帖

    1

  • 留言

    1

間隔線

The Interactive Cloth class is a Component that simulates a "cloth-like" behavior on a mesh. Use this Component if you want to use cloth in your scene.

交互布料基于一個(gè)網(wǎng)格,來模擬類似布料行為的組件。如果場景中想使用布料,那么就用這個(gè)組件。

Interactive Cloth
Interactive cloth in the scene view and its properties in the inspector.

Properties 屬性
Interactive Cloth 交互布料
  • Bending Stiffness 抗彎剛度
    Bending stiffness of the cloth.
    布料的彎曲強(qiáng)度,0與1之間,越大,越不容易彎曲。
  • Stretching Stiffness 拉伸剛度
    Stretching Stiffness of the cloth.
    布料的拉伸強(qiáng)度,0與1之間,越大,越不容易拉伸。
  • Damping 阻尼
    Damp cloth motion. 布料運(yùn)動(dòng)的阻尼。
  • Use Gravity 使用重力
    Should Gravity affect the cloth simulation?.
    布料模擬是否受重力影響。
  • External Acceleration 外部加速度
    A constant, external acceleration applied to the cloth
    設(shè)置一個(gè)固定的,外部加速度給布料。
  • Random Acceleration 隨機(jī)加速度
    A random, external acceleration applied to the cloth
    設(shè)置一個(gè)隨機(jī)的,外部加速度給布料。
  • Mesh 網(wǎng)格
    Mesh that will be used by the interactive cloth for the simulation
    用于模擬互動(dòng)布料的網(wǎng)格。
  • Thickness 厚度
    The thickness of the cloth surface. 布料表面的厚度。
  • Friction 摩擦力
    The friction of the cloth. 布料的摩擦系數(shù),0與1之間。
  • Density 密度
    The density of the cloth. 布料的密度
  • Pressure 壓力
    The pressure inside the cloth/
    布料內(nèi)部的壓力,僅適用于封閉布料?梢阅M氣球等等。
  • Collision Response 碰撞反應(yīng)
    How much force will be applied to colliding rigidbodies?.
    對(duì)撞上布料的剛體施加多大的力。
  • Attachment Tear Factor
    附加撕裂系數(shù)
    How far attached rigid bodies need to be stretched, before they will tear off.
    布料從掛接剛體撕裂的拉伸程度,掛接剛體必需勾選tearable才生效。
  • Attachment Response
    附加反應(yīng)
    How much force will be applied to attached rigidbodies?.
    對(duì)掛接的剛體施加多少作用力,只有當(dāng)掛接剛體勾選TwoWayInteraction生效。
  • Tear Factor 撕裂系數(shù)
    How far cloth vertices need to be stretched, before the cloth will tear.
    布料的頂點(diǎn)之間距離多長會(huì)被撕開。
  • Attached Colliders 附加的碰撞器列表
    Array that contains the attached colliders to this cloth
    一個(gè)包含布料掛接的所有碰撞體的數(shù)組。每個(gè)碰撞體有TwoWayInteraction與Tearable兩個(gè)可選選項(xiàng)。
  • Self Collision 自身碰撞
    Will the cloth collide with itself?.
    布料是否自碰撞。

The Interactive Cloth Component depends of the Cloth Renderer Component, this means that this component cannot be removed if the Cloth Renderer is present in the Game Object.

布料渲染組件依賴于互動(dòng)布料組件,所以當(dāng)布料渲染組件在當(dāng)前GameObject存在時(shí),互動(dòng)布料組件不能被移除。

Cloth Renderer 布料渲染器
  • Cast Shadows
    投射陰影
    If selected the cloth will cast shadows
    勾選后布料將會(huì)投影。
  • Receive Shadows
    接收陰影
    The cloth can receive Shadows if enabled
    勾選后布料能被投影。
  • Lightmap Index
    光照貼圖索引
    The index of the lightmap applied to this renderer.
    渲染組件的光照?qǐng)D的索引(好像3.5已經(jīng)沒這個(gè)了)。
  • Lightmap Tiling Offset
    光照貼圖平鋪偏移
    The tiling & offset used for lightmap.
    設(shè)置光照?qǐng)D的平鋪與偏移(好像3.5已經(jīng)沒這個(gè)了)。
  • Materials 材質(zhì)
    Materials that the cloth will use.
    布料的材質(zhì)
  • Pause When Not Visible
    不可見時(shí)暫停
    If selected, the simulation will not be calculated when the cloth is not being rendered by the camera.
    如果勾選,那么在攝像機(jī)可見范圍外,布料將不進(jìn)行模擬運(yùn)算。
Adding an Interactive Cloth Game Object
增加交互布料物件

To add an Interactive Cloth in the scene just select GameObject->Create Other->Cloth.

在場景中創(chuàng)建一個(gè)交互布料,只需要選擇GameObject->Create Other->Cloth.

Hints 提示
  • Using lots of clothes in your game will reduce exponentially the performance of your game.
    使用過多布料將會(huì)降低你的游戲性能。
  • If you want to simulate clothing on characters, check out the Skinned Cloth component instead, which interacts with the SkinnedMeshRenderer component and is much faster then InteractiveCloth.
    如果你想模擬角色的衣服,那么用蒙皮布料組件來替換交互布料。它對(duì)蒙皮網(wǎng)格渲染組件的交互要比交互布料快。
  • To attach the cloth to other objects, use the Attached Colliders property to assign other objects to attach to. The colliders must overlap some vertices of the cloth mesh for this to work.
    想要將布料掛接在其他物體上,使用掛接碰撞體配置,設(shè)置要掛接的物件。注意,要使其工作,該碰撞體必須與布料在某些頂點(diǎn)重疊。
  • Attached Colliders' objects must intersect with the cloth you are attaching to.
    掛接碰撞體的物體必須要和掛接的布料相交。

贊0 踩0

未知用戶

2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號(hào)-1
2005-2025 ZhuFeng Community All Rights Reserved

VIP

朱峰社區(qū)微信公眾號(hào)

回頂部

1.復(fù)制文本發(fā)給您的QQ好友或群、微信等;好友點(diǎn)擊鏈接以后,轉(zhuǎn)發(fā)就成功了。 2.如朋友點(diǎn)擊您的鏈接,您需要需刷新一下才行;同一個(gè)好友僅能點(diǎn)擊一次。
購買VIP,觀看所有收費(fèi)教程!!