from direct.actor.Actor import Actor from pandac.PandaModules import * from direct.task import Task import math from math import pi, sin, cos from direct.showbase.ShowBase import ShowBase from direct.task import Task from direct.interval.IntervalGlobal import Sequence from pandac.PandaModules import Point3 e = loader.loadModel("phase_9/models/cogHQ/Elevator.bam") e.reparentTo(render) e.setHpr(0,0,0) e.setPos(1st Cord) pandaPosInterval22 = e.posInterval(13,Point3(1st Cord), startPos=Point3(2nd Cord)) pandaPosInterval33 = e.posInterval(13,Point3(2nd Cord), startPos=Point3(1st Cord)) pandaHprInterval11 = e.hprInterval(3,Point3(0,0,0), startHpr=Point3(0, 0, 0)) pandaHprInterval22 = e.hprInterval(3,Point3(0, 0, 0), startHpr=Point3(0, 0, 0)) pandaPace = Sequence(pandaPosInterval22, pandaHprInterval11, pandaPosInterval33, pandaHprInterval22, name="pandaPace") pandaPace.loop() e.find('**/wall_back').removeNode() e.find('**/wall_front').removeNode()