4
$\begingroup$

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.

$\endgroup$
5
$\begingroup$

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.

$\endgroup$
  • $\begingroup$ 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? $\endgroup$ – Amir Oct 17 '18 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.