45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
|
from pandac.PandaModules import *
|
||
|
from direct.actor.Actor import Actor
|
||
|
from direct.showbase.DirectObject import DirectObject
|
||
|
from direct.showbase.ShowBase import ShowBase
|
||
|
from direct.interval.IntervalGlobal import Func, Wait, Sequence
|
||
|
|
||
|
|
||
|
f = loader.loadModel("phase_9/models/cogHQ/Elevator.bam")
|
||
|
f.reparentTo(render)
|
||
|
f.setHpr(90,0,0)
|
||
|
f.setPos(1032,1319,149)
|
||
|
f.setScale(2)
|
||
|
pandaPosInterval22 = f.posInterval(13,Point3(1032,1319,160),
|
||
|
startPos=Point3(1032,1319,149))
|
||
|
pandaPosInterval33 = f.posInterval(13,Point3(1032,1319,149),
|
||
|
|
||
|
startPos=Point3(1032,1319,149))
|
||
|
pandaHprInterval11 = f.hprInterval(3,Point3(0,0,0),
|
||
|
|
||
|
startHpr=Point3(0, 0, 0))
|
||
|
pandaHprInterval22 = f.hprInterval(3,Point3(0, 0, 0),
|
||
|
|
||
|
startHpr=Point3(0, 0, 0))
|
||
|
pandaPace = Sequence(pandaPosInterval22,
|
||
|
pandaHprInterval11,
|
||
|
pandaPosInterval33,
|
||
|
pandaHprInterval22,
|
||
|
name="pandaPace")
|
||
|
pandaPace.loop()
|
||
|
f.find('**/wall_back').removeNode()
|
||
|
f.find('**/wall_front').removeNode()
|
||
|
f.find('**/wall_left').removeNode()
|
||
|
f.find('**/wall_right').removeNode()
|
||
|
f.find('**/ceiling').removeNode()
|
||
|
r = loader.loadModel("phase_9/models/cogHQ/Elevator.bam")
|
||
|
r.setPos(1032,1319,149)
|
||
|
r.setHpr(0,340.30,0)
|
||
|
r.setScale(50)
|
||
|
r.hide()
|
||
|
r.reparentTo(render)
|
||
|
r.find('**/wall_back').removeNode()
|
||
|
r.find('**/wall_front').removeNode()
|
||
|
r.find('**/wall_left').removeNode()
|
||
|
r.find('**/wall_right').removeNode()
|
||
|
r.find('**/ceiling').removeNode()
|