Add back posCamera fix

This commit is contained in:
John Cote 2015-04-28 00:28:12 -04:00
parent 40a74a02eb
commit aa8e8b6d09

View file

@ -612,7 +612,8 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
camera.setPos(savePos)
camera.setHpr(saveHpr)
taskMgr.remove('posCamera')
camera.lerpPosHpr(x, y, z, h, p, r, time, task='posCamera')
self.cameraLerp = LerpPosHprInterval(camera, time, Point3(x, y, z), Point3(h, p, r), other=self, name='posCamera')
self.cameraLerp.start()
def getClampedAvatarHeight(self):
return max(self.getHeight(), 3.0)