onilink_

Untitled

Mar 25th, 2020
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. BulletDirectional& motion =
  2.         static_cast<BulletDirectional&>(*bullet.motion);
  3.  
  4. spd->setValue(double(motion.speed()));
  5. bounce->setCheckState(motion.bounce());
  6.  
  7. spd->value_changed.connect([this, &motion](float value){
  8.     motion.setSpeed(value);
  9.     evUpdateSpCost();
  10. });
Advertisement
Add Comment
Please, Sign In to add comment