Exemplo n.º 1
0
 def replaceMesh(self, meshData):
     self.meshName = meshData
     self.mesh = pyxie.figure(meshData)
     self.mesh.position = vmath.vec3(self.gameObject.transform.position)
     self.mesh.rotation = vmath.quat(
         helperFunction.fromEulerToQuaternion(
             self.gameObject.transform.rotation))
     self.mesh.scale = vmath.vec3(self.gameObject.transform.scale)
Exemplo n.º 2
0
    def __init__(self, gameObject, meshData):
        super().__init__(gameObject)
        self.meshName = meshData
        self.showOnInspector("meshName")

        self.mesh = pyxie.figure(meshData)
        self.mesh.position = vmath.vec3(self.gameObject.transform.position)
        self.mesh.rotation = vmath.quat(
            helperFunction.fromEulerToQuaternion(
                self.gameObject.transform.rotation))
        self.mesh.scale = vmath.vec3(self.gameObject.transform.scale)
Exemplo n.º 3
0
    def __init__(self, gameObject, colliderPath, showcase):
        super().__init__(gameObject)
        self.colType = "BOX COLLIDER"
        self.showOnInspector("colType")

        self.scale = self.gameObject.transform.scale
        self.showOnInspector("scale")
        self.isDisplay = True
        self.showOnInspector("isDisplay")
        self.showcase = showcase

        self.mesh = pyxie.figure(colliderPath)
        self.mesh.position = vmath.vec3(self.gameObject.transform.position)
        self.mesh.rotation = vmath.quat(
            helperFunction.fromEulerToQuaternion(
                self.gameObject.transform.rotation))
        self.mesh.scale = vmath.vec3(self.gameObject.transform.scale)
        self.showcase.add(self.mesh)
Exemplo n.º 4
0
 def __autoReTransform(self):
     self.mesh.position = vmath.vec3(self.gameObject.transform.position)
     self.mesh.rotation = vmath.quat(
         helperFunction.fromEulerToQuaternion(
             self.gameObject.transform.rotation))
     self.mesh.scale = vmath.vec3(self.gameObject.transform.scale)