What's the difference between AddForce and SetForce?

From Newton Wiki
Jump to: navigation, search

from official newton forums:


(user: schick)

What's exactly the difference between SetForce and AddForce? In my test environment, i cannot see any difference.


(user: Sascha Willems)

You use AddForce e.g. if you apply different forces (so that they "sum" up) in one single callback. But if you already know the final force to apply, you use SetForce.


(user: Julio Jerez)

Set force copy the force value into the force accumulator.

Add force add the values to the force accumulator.


back to the FAQ