peng3d/model.py
def setRot(self,data,rot):
        """
        Sets the rotation of this bone on the given entity.
        
        ``data`` is the entity to modify in dictionary form.
        
        ``rot`` is the rotation of the bone in the format used in :py:func:`calcSphereCoordinates()`\ .
        """
        self.ensureBones(data)
        rot = rot[0]%360,max(-90, min(90, rot[1]))
        data["_bones"][self.name]["rot"]=rot
def setRot(self,data,rot):
        """
        Sets the rotation of this bone on the given entity.
        
        ``data`` is the entity to modify in dictionary form.
        
        ``rot`` is the rotation of the bone in the format used in :py:func:`calcSphereCoordinates()`\ .
        """
        self.ensureBones(data)
        rot = rot[0]%360,max(-90, min(90, rot[1]))
        data["_bones"][self.name]["rot"]=rot
def setRot ( self , data , rot ) : self . ensureBones ( data ) rot = rot [ 0 ] % 360 , max ( - 90 , min ( 90 , rot [ 1 ] ) ) data [ "_bones" ] [ self . name ] [ "rot" ] = rot
Sets the rotation of this bone on the given entity.
        
        ``data`` is the entity to modify in dictionary form.
        
        ``rot`` is the rotation of the bone in the format used in :py:func:`calcSphereCoordinates()`\ .
Sets the rotation of this bone on the given entity . data is the entity to modify in dictionary form . rot is the rotation of the bone in the format used in : py : func : calcSphereCoordinates () \ .