Beispiel #1
0
 def __copy__(self):
   new_model_ptr = mjlib.mj_copyModel(None, self.ptr)
   return self.__class__(new_model_ptr)
Beispiel #2
0
 def __copy__(self):
     new_model_ptr = mjlib.mj_copyModel(None, self.ptr)
     _create_finalizer(new_model_ptr, mjlib.mj_deleteModel)
     return self.__class__(new_model_ptr)