当前位置: 首页>>代码示例>>Python>>正文


Python ElevatorUtils.getLeftClosePoint方法代码示例

本文整理汇总了Python中toontown.building.ElevatorUtils.getLeftClosePoint方法的典型用法代码示例。如果您正苦于以下问题:Python ElevatorUtils.getLeftClosePoint方法的具体用法?Python ElevatorUtils.getLeftClosePoint怎么用?Python ElevatorUtils.getLeftClosePoint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在toontown.building.ElevatorUtils的用法示例。


在下文中一共展示了ElevatorUtils.getLeftClosePoint方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: close

# 需要导入模块: from toontown.building import ElevatorUtils [as 别名]
# 或者: from toontown.building.ElevatorUtils import getLeftClosePoint [as 别名]
 def close(self, animate=True):
     if not self._open:
         return
     if animate:
         self._finishIval()
         self._ival = Sequence(
             Parallel(
                 SoundInterval(self._closeSfx),
                 self._leftDoor.posInterval(
                     self.getOpenCloseDuration(),
                     ElevatorUtils.getLeftClosePoint(ElevatorConstants.ELEVATOR_NORMAL),
                     startPos=ElevatorUtils.getLeftOpenPoint(ElevatorConstants.ELEVATOR_NORMAL),
                     blendType="easeIn",
                 ),
                 self._rightDoor.posInterval(
                     self.getOpenCloseDuration(),
                     ElevatorUtils.getRightClosePoint(ElevatorConstants.ELEVATOR_NORMAL),
                     startPos=ElevatorUtils.getRightOpenPoint(ElevatorConstants.ELEVATOR_NORMAL),
                     blendType="easeIn",
                 ),
             )
         )
         self._ival.start()
     else:
         ElevatorUtils.closeDoors(self._leftDoor, self._rightDoor, type=ElevatorConstants.ELEVATOR_NORMAL)
     self._open = False
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:28,代码来源:CogdoGameExit.py

示例2: __playReservesJoining

# 需要导入模块: from toontown.building import ElevatorUtils [as 别名]
# 或者: from toontown.building.ElevatorUtils import getLeftClosePoint [as 别名]
    def __playReservesJoining(self, ts, name, callback):
        index = 0
        for suit in self.joiningReserves:
            suit.reparentTo(render)
            suit.setPos(
                self.elevatorModelOut,
                Point3(ElevatorPoints[index][0], ElevatorPoints[index][1], ElevatorPoints[index][2]),
            )
            index += 1
            suit.setH(180)
            suit.loop("neutral")

        if len(self.suits) == len(self.joiningReserves):
            camSequence = Sequence(
                Func(camera.wrtReparentTo, localAvatar),
                Func(camera.setPos, Point3(0, 5, 5)),
                Func(camera.headsUp, self.elevatorModelOut),
            )
        else:
            camSequence = Sequence(
                Func(camera.wrtReparentTo, self.elevatorModelOut),
                Func(camera.setPos, Point3(0, -8, 2)),
                Func(camera.setHpr, Vec3(0, 10, 0)),
            )
        track = Sequence(
            camSequence,
            Parallel(
                SoundInterval(self.openSfx),
                LerpPosInterval(
                    self.leftDoorOut,
                    ElevatorData[ELEVATOR_NORMAL]["closeTime"],
                    Point3(0, 0, 0),
                    startPos=ElevatorUtils.getLeftClosePoint(ELEVATOR_NORMAL),
                    blendType="easeOut",
                ),
                LerpPosInterval(
                    self.rightDoorOut,
                    ElevatorData[ELEVATOR_NORMAL]["closeTime"],
                    Point3(0, 0, 0),
                    startPos=ElevatorUtils.getRightClosePoint(ELEVATOR_NORMAL),
                    blendType="easeOut",
                ),
            ),
            Wait(SUIT_HOLD_ELEVATOR_TIME),
            Func(camera.wrtReparentTo, render),
            Func(callback),
        )
        track.start(ts)
        self.activeIntervals[name] = track
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:51,代码来源:DistributedCogdoInterior.py

示例3: __playCloseElevatorOut

# 需要导入模块: from toontown.building import ElevatorUtils [as 别名]
# 或者: from toontown.building.ElevatorUtils import getLeftClosePoint [as 别名]
 def __playCloseElevatorOut(self, name, delay=0):
     track = Sequence(
         Wait(delay + SUIT_LEAVE_ELEVATOR_TIME),
         Parallel(
             SoundInterval(self.closeSfx),
             LerpPosInterval(
                 self.leftDoorOut,
                 ElevatorData[ELEVATOR_NORMAL]["closeTime"],
                 ElevatorUtils.getLeftClosePoint(ELEVATOR_NORMAL),
                 startPos=Point3(0, 0, 0),
                 blendType="easeOut",
             ),
             LerpPosInterval(
                 self.rightDoorOut,
                 ElevatorData[ELEVATOR_NORMAL]["closeTime"],
                 ElevatorUtils.getRightClosePoint(ELEVATOR_NORMAL),
                 startPos=Point3(0, 0, 0),
                 blendType="easeOut",
             ),
         ),
     )
     track.start()
     self.activeIntervals[name] = track
开发者ID:Teku16,项目名称:ToontownPlanet,代码行数:25,代码来源:DistributedCogdoInterior.py


注:本文中的toontown.building.ElevatorUtils.getLeftClosePoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。