SHARE
TWEET

Untitled

a guest Oct 30th, 2012 99 Never
  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;
RAW Paste Data
Top