Source code for pyrcareworld.attributes.cloth_attr
import pyrcareworld.attributes as attr
[docs]
class ClothAttr(attr.BaseAttr):
"""
Obi cloth class.
"""
[docs]
def GetParticles(self):
"""
Get the cloth particles.
"""
self._send_data("GetParticles")
[docs]
def AddAttach(self, id: int, max_dis: float = 0.03):
"""
Add Attach clothing to attr object with the given ID.
:param id: Int, Target attr object ID.
:param max_dis: Float, max distance.
"""
self._send_data("AddAttach", int(id), float(max_dis))
[docs]
def RemoveAttach(self, id: int):
"""
Remove Attach clothing from attr object with the given ID.
:param id: Int, Target attr object ID.
"""
self._send_data("RemoveAttach", int(id))