(self, data)
Initializes a new or existing `Physics` instance from a `core.MjData`.

    Assigns all attributes and sets up rendering contexts and named indexing.

    The default constructor as well as the other `reload_from` methods should
    delegate to this method.

    Args:
      data: Instance of `core.MjData`.
Initializes a new or existing `Physics` instance from a `core.MjData`.
Initializes a new or existing Physics instance from a core . MjData .
def _reload_from_data(self, data):
    """Initializes a new or existing `Physics` instance from a `core.MjData`.

    Assigns all attributes and sets up rendering contexts and named indexing.

    The default constructor as well as the other `reload_from` methods should
    delegate to this method.

    Args:
      data: Instance of `core.MjData`.
    """
    super()._reload_from_data(data)
    self._bindings = {}
    self._bindings[()] = _EMPTY_BINDING
    self._dirty = False
def _reload_from_data ( self , data ) : super ( ) . _reload_from_data ( data ) self . _bindings = { } self . _bindings [ ( ) ] = _EMPTY_BINDING self . _dirty = False