Advertisement
Guest User

Untitled

a guest
Oct 30th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     Howdy guys, so I've come across this scenario a few times before where I need to determine a force based on distance, how do I go about finding the value for magicMultiplier?
  3. */
  4.  
  5. if (dis == 10)
  6. {
  7.     shootForce = 5000;
  8. }
  9. if (dis == 100)
  10. {
  11.     shootForce = 16000;
  12. }
  13.  
  14. //My goal:
  15. shootForce = dis * magicMultiplier;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement