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


Python PartyUtils.arcPosInterval方法代码示例

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


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

示例1: releaseToon

# 需要导入模块: from toontown.parties import PartyUtils [as 别名]
# 或者: from toontown.parties.PartyUtils import arcPosInterval [as 别名]
 def releaseToon(self):
     self._hideFlashMessage()
     self.ignore("arrow_left")
     self.ignore("arrow_left-up")
     self.ignore("arrow_right")
     self.ignore("arrow_right-up")
     taskMgr.remove(self.uniqueName("TrampolineActivity.updateTask"))
     self.hopOffAnim = Sequence(
         self.toon.hprInterval(0.5, VBase3(-90.0, 0.0, 0.0), other=self.tramp),
         Func(self.toon.b_setAnimState, "jump", 1.0),
         Func(self.toon.dropShadow.reparentTo, hidden),
         Wait(0.4),
         PartyUtils.arcPosInterval(0.75, self.toon, self.hopOffPos, 5.0, self.tramp),
         Func(self.postHopOff),
     )
     self.hopOffAnim.start()
开发者ID:OldToontown,项目名称:OldToontown,代码行数:18,代码来源:DistributedPartyTrampolineActivity.py

示例2: acquireToon

# 需要导入模块: from toontown.parties import PartyUtils [as 别名]
# 或者: from toontown.parties.PartyUtils import arcPosInterval [as 别名]
 def acquireToon(self):
     self.toon.disableSmartCameraViews()
     self.toon.stopUpdateSmartCamera()
     camera.wrtReparentTo(render)
     self.toon.dropShadow.reparentTo(hidden)
     self.toon.startPosHprBroadcast(period=0.2)
     self.toonAcceleration = 0.0
     self.toonVelocity = 0.0
     self.topHeight = 0.0
     self.trampB = self.normalTrampB
     self.leavingTrampoline = False
     self.hopOnAnim = Sequence(
         Func(self.toon.b_setAnimState, "jump", 1.0),
         Wait(0.4),
         PartyUtils.arcPosInterval(0.75, self.toon, Point3(0.0, 0.0, self.trampHeight), 5.0, self.tramp),
         Func(self.postHopOn),
     )
     self.hopOnAnim.start()
开发者ID:OldToontown,项目名称:OldToontown,代码行数:20,代码来源:DistributedPartyTrampolineActivity.py

示例3: releaseToon

# 需要导入模块: from toontown.parties import PartyUtils [as 别名]
# 或者: from toontown.parties.PartyUtils import arcPosInterval [as 别名]
 def releaseToon(self):
     self._hideFlashMessage()
     self.ignore(base.Move_Left)
     self.ignore(base.Move_Left + '-up')
     self.ignore(base.Move_Right)
     self.ignore(base.Move_Right + '-up')
     taskMgr.remove(self.uniqueName('TrampolineActivity.updateTask'))
     self.hopOffAnim = Sequence(self.toon.hprInterval(0.5, VBase3(-90.0, 0.0, 0.0), other=self.tramp), Func(self.toon.b_setAnimState, 'jump', 1.0), Func(self.toon.dropShadow.reparentTo, hidden), Wait(0.4), PartyUtils.arcPosInterval(0.75, self.toon, self.hopOffPos, 5.0, self.tramp), Func(self.postHopOff))
     self.hopOffAnim.start()
开发者ID:ponyboy837,项目名称:SecretGitLolYoloSweg2015,代码行数:11,代码来源:DistributedPartyTrampolineActivity.py


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