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$

1 Answer 1

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$
1
  • $\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
    Commented Oct 17, 2018 at 13:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .