本文整理汇总了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
示例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
示例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