set_state( state_name, value )

set an object state

Params:

  • state_name: the name of the physical state
  • value: the value of the physical state
chair1.set_state('pressure', 20)