包含9節(jié)視頻教程
這是臨摹的終極表現(xiàn)!在臨摹領(lǐng)域達(dá)到真實照片的級別,讓你的繪畫讓別人驚呼吧!這不是照片,真的是繪畫出來的。我們一起來學(xué)習(xí)吧!
![]()
|
![]() 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)系的物體一起運動。
Properties 屬性
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 提示
贊0 踩0 |
未知用戶
2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號-1
2005-2025 ZhuFeng Community All Rights Reserved
VIP