? ,,

亚洲午夜精品视频_国产黄大片_网站av_99亚洲伊人久久精品影院红桃_91av入口_永久免费av片在线观看全网站

聯系我們

給我們留言

聯系我們

地址:福建省晉江市青陽街道洪山路國際工業設計園納金網

郵箱:info@narkii.com

電話:0595-82682267

(周一到周五, 周六周日休息)

當前位置:主頁 > 3D教程 > 圖文教程

UE4 SetPhysicsLinearVelocity、AddForce區別

來源: 52vr | 責任編輯:傳說的落葉 | 發布時間: 2019-06-06 08:19 | 瀏覽量:

[UE4]SetPhysicsLinearVelocity、AddForce區別

 

SetPhysicsAngularVelocity:用于旋轉物體。但官方文檔建議謹慎使用此接口,建議用 AddTorque或者AddImpulse

 

AddForce用法:

 
  1. mesh->AddForce(FVector::RightVector * mesh->GetBodyInstance()->GetBodyMass() * 1000);  

https://answers.unrealengine.com/questions/290824/addforceaddimpulse-wont-work.html

 

修改Velocity:
一般動畫藍圖中使用Velocity來判定當前對象的移動速度從而來判定是否播放跑步動畫。AddForce并不會修改Velocity值,所以如果要移動的同時來設置Velocity,需要手動設置:

 
  1. MyChar->GetCharacterMovement()->Velocity += FVector(0,0,20000);  

https://answers.unrealengine.com/questions/27069/addimpulse-or-addforce-on-character.html

 

 

注意,如果要使用SetPhysicsLinearVelocity(),需要將SetSimulatePhysics設置為true

 
  1. MyCharacter->GetMesh()->SetSimulatePhysics(true);  
  2. MyCharacter->GetMesh()->SetPhysicsLinearVelocity(FVector(100.f, 100.f, 100.f));  

 https://answers.unrealengine.com/questions/140978/how-to-set-a-initial-velocity.html

 

 

UPrimitiveComponent::AddForce
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/AddForce/index.html

 

UPrimitiveComponent::AddImpulse

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/AddImpulse/index.html

 

UPrimitiveComponent::SetPhysicsLinearVelocity

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/SetPhysicsLinearVelocity/index.html

 

UPrimitiveComponent::SetPhysicsAngularVelocity
https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/SetPhysicsAngularVelocity/index.html


相關文章
網友評論

您需要登錄后才可以發帖 登錄 | 立即注冊

關閉

全部評論:0條

推薦
熱門
主站蜘蛛池模板: 国产亚州精品女人久久久久久 | 白丝美女被狂躁免费视频网站 | 欧美人与禽zozzo性伦交 | 亚洲天堂成人 | 四虎影院com | 两个人看的www视频免费完整版 | 爆爽久久久一区二区又大又黄又嫩 | 欲香欲色天天综合和网 | 无码人妻精品一区二区三18禁 | 欧美另类偷自拍视频二区 | 国产爆乳无码视频在线观看3 | 翁熄性放纵交换高清视频 | 久久精品一区二区三区中文字幕 | 玖玖国产在线 | 日韩国产一区二区 | 欧洲在线观看 | 手机免费看一级片 | 亚洲熟妇自拍无码区 | 国产成人亚洲精品乱码在线观看 | 日本a∨在线播放高清 | 黄瓜成视频片无限次数 | 自拍 欧美 在线 综合 另类 | 日韩欧美在线视频不卡免费视频 | 日本a∨在线观看 | 青青青青久久久久国产的 | 欧美三区在线观看 | 成人性色大片 | 黄色a级免费 | 99网站在线观看 | 天美麻花果冻视频大全英文版 | 日韩国产欧美一区二区三区 | 国产网站黄色 | 韩国精品一区二区三区四区五区 | 久久性精品| 中文字幕一区二区三区人妻少妇 | 国产在线视频区 | 男女朋友做爽爽爽免费视频网 | 国产重口老太和小伙乱 | 美国大黄| 毛片搜索 | 久久久久久不卡 |