包含5節(jié)視頻教程
本系列包含Unity3D介紹、Unity3D導(dǎo)出人物、Unity3D導(dǎo)出場(chǎng)景、Unity3D導(dǎo)出動(dòng)作、游戲測(cè)試最終完成一個(gè)簡(jiǎn)單的游戲。是一套非常完整的Unity3D游戲制作教程。
![]()
|
![]() Constant Force is a quick utility for adding constant forces to a Rigidbody. This works great for one shot objects like rockets, if you don't want it to start with a large velocity but instead accelerate. 恒力是一種快速有效地給剛體添加恒定外力的方法。適用于類似于火箭等射出的對(duì)象,如果你不希望其初速度很大而是不斷加速。
Properties 屬性
Details 細(xì)節(jié)To make a rocket that accelerates forward set the Relative Force to be along the positive z-axis. Then use the Rigidbody's Drag property to make it not exceed some maximum velocity (the higher the drag the lower the maximum velocity will be). In the Rigidbody, also make sure to turn off gravity so that the rocket will always stay on its path. 沿著z軸正方向設(shè)定相對(duì)推力會(huì)使火箭向前加速。使用剛體的Drag屬性使其不會(huì)超過某個(gè)最大速度(drag越大,最大速度會(huì)越。。剛體中的萬有引力也要保證關(guān)掉,這樣火箭將會(huì)一直保持其路徑。 Hints 提示
贊0 踩0 |
未知用戶
2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號(hào)-1
2005-2025 ZhuFeng Community All Rights Reserved
VIP