Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. if ((XMVectorGetX(vSVel) <= 0.01f) && (XMVectorGetY(vSVel) <= 0.01f) && (XMVectorGetZ(vSVel) <= 0.01f))
  2. {
  3. l++;
  4. }
  5.  
  6. if ((l == 60) && ((XMVectorGetX(vSVel) <= 0.01f) && (XMVectorGetY(vSVel) <= 0.01f) && (XMVectorGetZ(vSVel) <= 0.01f)))
  7. {
  8. l = 0;
  9. mSphereVel = XMFLOAT3(0,0,0);
  10. XMStoreFloat3(&mSphereVel, vSVel);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement