Is it possible to set multiple setConstantForce()
by Jesse Hall · in Torque Game Builder · 07/11/2005 (10:44 am) · 4 replies
Does setConstantForcePolar() keep adding forces or change the values for just the one force?
Is it possible to set multiple forces?
Is it possible to set multiple forces?
About the author
#2
What I do is track all the forces as vectors and each time one changes recalculate the overall vector as a sum of the individual vectors and apply that using the setConstantForce functions.
02/28/2006 (12:46 am)
I don't think you can either.What I do is track all the forces as vectors and each time one changes recalculate the overall vector as a sum of the individual vectors and apply that using the setConstantForce functions.
#3
You can simply add the forces together. If you want to "add" a force, simply retrieve the existing one, add the new one to it and then set the new force.
This is just basic Vector Addition.
Hope this helps,
- Melv.
03/03/2006 (12:01 am)
Jesse,You can simply add the forces together. If you want to "add" a force, simply retrieve the existing one, add the new one to it and then set the new force.
This is just basic Vector Addition.
Hope this helps,
- Melv.
#4
03/03/2006 (3:04 pm)
Thanks Melv!
Torque Owner John Sripan
--john