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

搜索資源 注冊|登陸

等待

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

繪制真實照片

繪制真實照片

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

這是臨摹的終極表現(xiàn)!在臨摹領(lǐng)域達(dá)到真實照片的級別,讓你的繪畫讓別人驚呼吧!這不是照片,真的是繪畫出來的。我們一起來學(xué)習(xí)吧!

關(guān)閉

Unity組件:Fixed Joint 固定關(guān)節(jié)

關(guān)注:3167 留言:0 樓主:深圳七彩鹿科技有限公司 發(fā)帖時間:15年11月16日

深圳七彩鹿科技有限公司

普通會員

深圳七彩鹿科技有限公司

社區(qū)新人:1級

關(guān)注2580人

  • 積分

    1

  • 登陸

    1

  • 發(fā)帖

    1

  • 作品

    1

間隔線

Fixed Joints restricts an object's movement to be dependent upon another object. This is somewhat similar to Parenting but is implemented through physics rather than Transform hierarchy. The best scenarios for using them are when you have objects that you want to easily break apart from each other, or connect two object's movement without parenting.

固定關(guān)節(jié)基于另一個物體來限制一個物體的運動。效果類似于父子關(guān)系,但是不是通過層級變換,而是通過物理實現(xiàn)的。使用它的最佳情境是當(dāng)你有一些想要輕易分開的物體,或想讓兩個沒有父子關(guān)系的物體一起運動。


The Fixed Joint Inspector 固定關(guān)節(jié)檢視面板。

Properties 屬性
  • Connected Body 連接的剛體
    Optional reference to the Rigidbody that the joint is dependent upon. If not set, the joint connects to the world.
    連接的剛體。一個關(guān)節(jié)連接的剛體引用,可選。如果沒有設(shè)置,那么關(guān)節(jié)將和世界相連。
  • Break Force 斷開力
    The force that needs to be applied for this joint to break.
    斷裂的力。破壞關(guān)節(jié)的力的大小。
  • Break Torque 斷開扭矩
    The torque that needs to be applied for this joint to break.
    斷裂的扭矩。破壞關(guān)節(jié)的扭力的大小。
Details 細(xì)節(jié)

There may be scenarios in your game where you want objects to stick together permanently or temporarily. Fixed Joints may be a good Component to use for these scenarios, since you will not have to script a change in your object's hierarchy to achieve the desired effect. The trade-off is that you must use Rigidbodies for any objects that use a Fixed Joint.

在游戲中肯定存在這樣的情境,你想要物體永久或暫時的粘在一起。固定關(guān)節(jié)就是一個適用于這類情況的組件,它不需要用腳本來改變你的物體的層級來實現(xiàn)目標(biāo)效果。但僅適用含有剛體的物體。

For example, if you want to use a "sticky grenade", you can write a script that will detect collision with another Rigidbody (like an enemy), and then create a Fixed Joint that will attach itself to that Rigidbody. Then as the enemy moves around, the joint will keep the grenade stuck to them.

例如,你想搞個粘性炸彈,你就可以寫個腳本來檢測物體與其他剛體(比如敵人)的碰撞,然后創(chuàng)建一個固定關(guān)節(jié)將自身與該剛體相連。那么當(dāng)敵人移動時,關(guān)節(jié)就會使導(dǎo)彈一直粘在他身上。

Breaking joints 斷開關(guān)節(jié)

You can use the Break Force and Break Torque properties to set limits for the joint's strength. If these are less than infinity, and a force/torque greater than these limits are applied to the object, its Fixed Joint will be destroyed and will no longer be confined by its restraints.

你可以使用破壞力與破壞扭力屬性來設(shè)置關(guān)節(jié)強(qiáng)度的極限。如果這些參數(shù)小于無窮大,而施加到物體上的力或力矩大于這個限制,那么固定關(guān)節(jié)將被銷毀,它對物體的約束也就不存在了。

Hints 提示
  • You do not need to assign a Connected Body to your joint for it to work.
    關(guān)節(jié)并不需要設(shè)置一個連接的剛體。
  • Fixed Joints require a Rigidbody.
    使用固定關(guān)節(jié)自身要有個剛體組件。

贊0 踩0

未知用戶

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

VIP

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

回頂部

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