+ __slots__=['_name', '_english_name']
+ def getName(self): return from_str(self._name)
+ def setName(self, name): self._name=to_str(name)
+ name=property(getName, setName)
+ def getEnglishName(self): return from_str(self._english_name)
+ def setEnglishName(self, english_name): self._english_name=to_str(english_name)
+ english_name=property(getEnglishName, setEnglishName)
+
+ def __init__(self, name='group'): self._name=name; self._english_name='center'
+
+
+SHAPE_SPHERE=0
+SHAPE_BOX=1
+SHAPE_CAPSULE=2
+
+RIGIDBODY_KINEMATICS=0
+RIGIDBODY_PHYSICS=1
+RIGIDBODY_PHYSICS_WITH_BONE=2
+
+
+class RigidBody(object):
+ __slots__=['_name', 'boneIndex', 'group', 'target', 'shapeType',
+ 'w', 'h', 'd', 'position', 'rotation', 'weight',
+ 'linearDamping', 'angularDamping', 'restitution', 'friction', 'processType'
+ ]
+ def getName(self): return from_str(self._name)
+ def setName(self, name): self._name=to_str(name)
+ name=property(getName, setName)
+
+ def __init__(self, name):
+ self.name=name
+ self.position=Vector3()
+ self.rotation=Vector3()
+
+
+class Constraint(object):
+ __slots__=[ '_name', 'rigidA', 'rigidB', 'pos', 'rot',
+ 'constraintPosMin', 'constraintPosMax',
+ 'constraintRotMin', 'constraintRotMax',
+ 'springPos', 'springRot',
+ ]
+ def getName(self): return from_str(self._name)
+ def setName(self, name): self._name=to_str(name)
+ name=property(getName, setName)
+
+ def __init__(self, name):
+ self.name=name
+ self.pos=Vector3()
+ self.rot=Vector3()
+ self.constraintPosMin=Vector3()
+ self.constraintPosMax=Vector3()
+ self.constraintRotMin=Vector3()
+ self.constraintRotMax=Vector3()
+ self.springPos=Vector3()
+ self.springRot=Vector3()
+
+
+class ToonTextures(object):
+ __slots__=['_toon_textures']
+ def __init__(self):
+ self._toon_textures=[]
+ for i in range(10):
+ self._toon_textures.append('toon%02d.bmp' % (i+1))
+
+ def __getitem__(self, key):
+ return from_str(self._toon_textures[key])
+
+ def __setitem__(self, key, value):
+ self._toon_textures[key]=to_str(value)
+
+ def __iter__(self):
+ for toon_texture in self._toon_textures:
+ yield from_str(toon_texture)
+