Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 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?
- */
- if (dis == 10)
- {
- shootForce = 5000;
- }
- if (dis == 100)
- {
- shootForce = 16000;
- }
- //My goal:
- shootForce = dis * magicMultiplier;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement