tyFlow Forum
C# script--set force? - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Feature Requests (https://forum.tyflow.com/forum-4.html)
+--- Thread: C# script--set force? (/thread-4871.html)



C# script--set force? - jcjworks - 07-19-2025

How can I get and set force in a C# script, rather than velocity?
Idea


RE: C# script--set force? - tyFlow - 07-23-2025

Force is just some value added to velocity. So in a script it would be something like:

Code:
tf.SetVel(sInx, tf.GetVel(sInx) + forceVector);



RE: C# script--set force? - jcjworks - 07-24-2025

(07-23-2025, 02:22 PM)tyFlow Wrote: Force is just some value added to velocity. So in a script it would be something like:

Code:
tf.SetVel(sInx, tf.GetVel(sInx) + forceVector);

Heart Wink Smile Cool