Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float doForce = true;
- void stepPhysicsBall() {
- cout << "stepPhysicsBall -Start-" << endl;
- if (!ballInstantMode) {
- return;
- }
- // start Dynamic
- ballInstantMode->setRigidBodyFlag(PxRigidBodyFlag::Enum::eKINEMATIC, false);
- bool const interactive = true;
- stepPhysicsImmediateModeOneActor(interactive);
- // stop dynamic
- ballInstantMode->setRigidBodyFlag(PxRigidBodyFlag::Enum::eKINEMATIC, true);
- cout << "stepPhysicsBall -END-" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement