4

I would like to apply force to a specific point on the mesh. Could someone let me know how I can do that using Python scripting? The "applyForce" function applies the force to the center of the object. I need to apply the force to an arbitrary point.

Amir
  • 3,074
  • 2
  • 29
  • 55
Farhad
  • 163
  • 10

1 Answers1

5

You are looking for applyImpulse.

applyImpulse(point, impulse, local=False)
Applies an impulse to the game object.

This will apply the specified impulse to the game object at the specified point. If point != position, applyImpulse will also change the object’s angular momentum. Otherwise, only linear momentum will change.

HalfKiloByte
  • 558
  • 3
  • 8
  • Do you think it would be possible to apply forces to soft body objects in no-BGE Blender as well? If so, could you please take a look at my question here and post a solution? – Amir Oct 17 '18 at 13:40