? ,,

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

推薦
熱門
主站蜘蛛池模板: 一本一道vs无码中文字幕 | 精品国产人成在线 | 99久久久国产精品免费蜜臀 | 亚洲女同一区二区 | 亚洲欧洲综合在线 | 99国产精品久久久久久久日本 | 网禁拗女稀缺资源在线观看 | 欧美一区二区三区在线可观看 | 四虎永久影院永久影库 | 一区二区精品在线观看 | 欧美牲交a欧美牲交aⅴ久久 | 精品无人区乱码一区二区 | 精品动漫一区 | 亚洲精品无码永久在线观看你懂的 | 2020韩国三级理论在线观看 | 成人黄色毛片 | 国产a级特黄的片子视频 | 国产欧美日韩久久久久 | 亚洲一级毛片在线播放 | 亚洲中文无码av在线 | 少妇无码一区二区二三区 | 免费一级欧美大片在线观看 | 成人午夜久久 | 精品72久久久久久久中文字幕 | 毛片在线高清免费观看 | 新婚人妻不戴套国产精品 | 青草影院在线观看 | 四虎国产精品永久在线国在线 | 国产深夜福利19禁在线播放 | 精品全国在线一区二区 | 欧美一区二区三区四区五区六区 | 国产色视频免费 | 性视频免费的全部 | 国产亚洲精品久久久ai换 | 日日夜干| 高潮又爽又无遮挡又免费 | 99蜜臀噜噜噜在线视频观看 | 日韩欧美亚洲每的更新在线 | a级成人毛片免费视频高清 a级大胆欧美人体大胆666 | 国产午夜福利在线播放 | 无码字幕av一区二区三区 |