? ,,

亚洲午夜精品视频_国产黄大片_网站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條

推薦
熱門
主站蜘蛛池模板: 自拍 欧美 | 久久天堂 | 女人夜夜春高潮爽a∨片传媒 | 国产精品亚洲色婷婷99久久精品 | 韩日精品在线 | aⅴ网站在线观看 | 日本另类αv欧美另类aⅴ | 思思99热久久精品 | 日本高清视频在线播放 | 人妻少妇伦在线无码 | 国产美女一区二区 | 欧美超级乱婬视频播放 | 国模吧一区二区 | 国产成人精品福利网站在线 | 岛国午夜视频 | 丝袜国产在线 | 日韩欧美视频一区二区 | 亚洲 日本 欧美 中文幕 | a级在线观看免费 | 亚洲无线码一区二区三区 | 日本aaaaa高清免费看 | 国产亚洲精品久久久久久久久激情 | 成人日韩熟女高清视频一区 | 国产一区二区三精品久久久无广告 | 中国精品一级毛片免费播放 | 日韩av无码中文无码电影 | 人妻仑乱a级毛片免费看 | 国精品人妻无码一区二区三区性色 | 少数民族美乳国产在线 | 伊人久久大香线蕉久久婷婷 | 亚洲视频1 | 高潮抽搐潮喷毛片在线播放 | 亚洲av成人精品网站在线播放 | 国产在线观看成人免费视频 | 欧洲成人一区二区三区 | 天堂在线网 | 国产成人精品综合在线观看 | 亚洲加勒比无码一区二区 | 国产乱了真实在线观看 | 我要看a级毛片 | 色综久久 |