Пример #1
0
def platform2(where=None):
    matPos = None
    if where is None or where not in range(1, 5):
        matPos = PtGetLocalAvatar().getLocalToWorld()
    else:
        #Ahnonay
        if where == 1:
            tupPos = ((0.98276501894, 0.184859260917, 0.0, 23.3415126801),
                      (-0.184859260917, 0.98276501894, 0.0, 54.0308570862),
                      (0.0, 0.0, 1.0, -0.0328424945474), (0.0, 0.0, 0.0, 1.0))
        elif where == 2:
            tupPos = ((-0.897078573704, -0.44187015295, 0.0, 649.721862793),
                      (0.44187015295, -0.897078573704, 0.0, -877.984619141),
                      (0.0, 0.0, 1.0, 9445.71386719), (0.0, 0.0, 0.0, 1.0))
        elif where == 3:
            tupPos = ((0.00954949762672, -0.999954581261, 0.0, -102.545890808),
                      (0.999954581261, 0.00954949762672, 0.0, 54.9582672119),
                      (0.0, 0.0, 1.0, 10563.0976562), (0.0, 0.0, 0.0, 1.0))
        elif where == 4:
            tupPos = ((-0.748968303204, 0.662607133389, 0.0, 1560.00488281),
                      (-0.662607133389, -0.748968303204, 0.0, -51.4498291016),
                      (0.0, 0.0, 1.0, 10171.9091797), (0.0, 0.0, 0.0, 1.0))
        elif where == 5:
            tupPos = ((-0.937420606613, -0.3482016325, 0.0, 993.751708984),
                      (0.3482016325, -0.937420606613, 0.0, -455.378509521),
                      (0.0, 0.0, 1.0, 9424.86523438), (0.0, 0.0, 0.0, 1.0))
        matPos = ptMatrix44()
        matPos.setData(tupPos)

    Platform.CreatePlatform2(bShow=False, matAv=matPos)
Пример #2
0
def platform(where=None, bAttachOn=False):
    matPos = None
    #if where is None or where not in range(1, 5):
    if where is None or where not in range(1, 6):
        matPos = PtGetLocalAvatar().getLocalToWorld()
    else:
        """
        #Ahnonay
        if where == 1:
            tupPos = ((0.98276501894, 0.184859260917, 0.0, 23.3415126801), (-0.184859260917, 0.98276501894, 0.0, 54.0308570862), (0.0, 0.0, 1.0, -0.0328424945474), (0.0, 0.0, 0.0, 1.0))
        elif where == 2:
            tupPos = ((-0.897078573704, -0.44187015295, 0.0, 649.721862793), (0.44187015295, -0.897078573704, 0.0, -877.984619141), (0.0, 0.0, 1.0, 9445.71386719), (0.0, 0.0, 0.0, 1.0))
        elif where == 3:
            tupPos = ((0.00954949762672, -0.999954581261, 0.0, -102.545890808), (0.999954581261, 0.00954949762672, 0.0, 54.9582672119), (0.0, 0.0, 1.0, 10563.0976562), (0.0, 0.0, 0.0, 1.0))
        elif where == 4:
            tupPos = ((-0.748968303204, 0.662607133389, 0.0, 1560.00488281), (-0.662607133389, -0.748968303204, 0.0, -51.4498291016), (0.0, 0.0, 1.0, 10171.9091797), (0.0, 0.0, 0.0, 1.0))
        elif where == 5:
            tupPos = ((-0.937420606613, -0.3482016325, 0.0, 993.751708984), (0.3482016325, -0.937420606613, 0.0, -455.378509521), (0.0, 0.0, 1.0, 9424.86523438), (0.0, 0.0, 0.0, 1.0))
        """
        """
        # Descent V1
        if where == 1:
            tupPos = ((-0.0784590244293, 0.996917307377, 0.0, 789.132202148), (-0.996917307377, -0.0784590244293, 0.0, -583.487670898), (0.0, 0.0, 1.0, 1151.59057617), (0.0, 0.0, 0.0, 1.0))
        elif where == 2:
            tupPos = ((0.859911203384, 0.510443627834, 0.0, 785.749572754), (-0.510443627834, 0.859911203384, 0.0, -574.134643555), (0.0, 0.0, 1.0, 1151.59057617), (0.0, 0.0, 0.0, 1.0))
        elif where == 3:
            tupPos = ((-0.398735255003, 0.91706776619, 0.0, 766.0), (-0.91706776619, -0.398735255003, 0.0, -699.0), (0.0, 0.0, 1.0, 715.0), (0.0, 0.0, 0.0, 1.0))
        elif where == 4:
        """
        # Descent V2
        if where == 1:
            tupPos = ((0.722353339195, -0.691524147987, 0.0, 766.198181152),
                      (0.691524147987, 0.722353339195, 0.0, -698.65826416),
                      (0.0, 0.0, 1.0, 608.855895996), (0.0, 0.0, 0.0, 1.0))
        elif where == 2:
            tupPos = ((1.0, -0.0, 0.0, 769.0), (0.0, 1.0, 0.0, -610.0),
                      (0.0, 0.0, 1.0, 1152.0), (0.0, 0.0, 0.0, 1.0))
        elif where == 3:
            tupPos = ((0.0, -1.0, 0.0, 766.0), (1.0, 0.0, 0.0, -699.0),
                      (0.0, 0.0, 1.0, 1146.0), (0.0, 0.0, 0.0, 1.0))
        elif where == 4:
            tupPos = ((0.0, -1.0, 0.0, 766.0), (1.0, 0.0, 0.0, -680.0),
                      (0.0, 0.0, 1.0, 1140.0), (0.0, 0.0, 0.0, 1.0))
        elif where == 5:
            tupPos = ((0.0, -1.0, 0.0, 766.0), (1.0, 0.0, 0.0, -680.0),
                      (0.0, 0.0, 1.0, 715.0), (0.0, 0.0, 0.0, 1.0))
        elif where == 6:
            tupPos = ((0.0, -1.0, 0.0, 766.0), (1.0, 0.0, 0.0, -680.0),
                      (0.0, 0.0, 1.0, 610.0), (0.0, 0.0, 0.0, 1.0))

        matPos = ptMatrix44()
        matPos.setData(tupPos)

    Platform.CreatePlatform2(bShow=False, matAv=matPos, bAttach=bAttachOn)