參考:
Rigid Body Dynamics — NVIDIA PhysX SDK 4.1 Documentation
說明:
PxActor::setActorFlag(PxActorFlag::eDISABLE_GRAVITY, true);
或著將重力設定為0
在SampleSubmarine示例中可以看到,為了模擬飛船的運動效果,預先關閉了它的重力模擬
//disable the current and buoyancy effect for the sub.
mSubmarineActor->setActorFlag(PxActorFlag::eDISABLE_GRAVITY, true);
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/304071.html
標籤:其他
上一篇:用Qt做的拼圖小游戲
