in jsuarez/extra/embyr_deprecated/embyr/kivy3/core/object3d.py [0:0]
def __init__(self, **kw):
super(Object3D, self).__init__(**kw)
self.name = kw.pop('name', '')
self.children = list()
self.parent = None
self._scale = Scale(1., 1., 1.)
self._position = Vector3(0, 0, 0)
self._rotation = Vector3(0, 0, 0)
self._position.set_change_cb(self.on_pos_changed)
self._rotation.set_change_cb(self.on_angle_change)
# general instructions
self._pop_matrix = PopMatrix()
self._push_matrix = PushMatrix()
self._translate = Translate(*self._position)
self._rotors = {
"x": Rotate(self._rotation.x, 1, 0, 0),
"y": Rotate(self._rotation.y, 0, 1, 0),
"z": Rotate(self._rotation.z, 0, 0, 1),
}
self._instructions = InstructionGroup()