Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. float doForce = true;
  2. void stepPhysicsBall() {
  3. cout << "stepPhysicsBall -Start-" << endl;
  4. if (!ballInstantMode) {
  5. return;
  6. }
  7.  
  8. // start Dynamic
  9. ballInstantMode->setRigidBodyFlag(PxRigidBodyFlag::Enum::eKINEMATIC, false);
  10.  
  11. bool const interactive = true;
  12. stepPhysicsImmediateModeOneActor(interactive);
  13.  
  14. // stop dynamic
  15. ballInstantMode->setRigidBodyFlag(PxRigidBodyFlag::Enum::eKINEMATIC, true);
  16.  
  17. cout << "stepPhysicsBall -END-" << endl;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement