lock position of soft body object

Hi! I’m new in blender and trying figure out how I can lock position of soft body object. I want to achieve effect when my object “in air” but it is still posible to deform with another object. For rigid bodies there is menu “Lock Translation”, but for soft body is nothing. Maybe someone know how it posible to do?

not know if there other way but this is pretty simple (only for the position, not orientation)

just add a sensor always with true pulse (the thing with >’’’<)
jointed to the script



import bge 

own = bge.logic.getCurrentController().owner


if not "init" in own:
    own["init"] = 1
    own["start_position"] = own.worldPosition.copy()
    
vec = own["start_position"] - own.worldPosition

own.applyForce(vec*30)


worldLinearVelocity for some reason not work well