Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((XMVectorGetX(vSVel) <= 0.01f) && (XMVectorGetY(vSVel) <= 0.01f) && (XMVectorGetZ(vSVel) <= 0.01f))
- {
- l++;
- }
- if ((l == 60) && ((XMVectorGetX(vSVel) <= 0.01f) && (XMVectorGetY(vSVel) <= 0.01f) && (XMVectorGetZ(vSVel) <= 0.01f)))
- {
- l = 0;
- mSphereVel = XMFLOAT3(0,0,0);
- XMStoreFloat3(&mSphereVel, vSVel);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement