added faceAwayFromViewer and faceTowardsViewer

This commit is contained in:
Darren Ranalli 2006-07-14 21:21:24 +00:00
parent dc6b1cbe79
commit 7ec9afa83d

View File

@ -1715,3 +1715,10 @@ class Actor(DirectObject, NodePath):
else:
if onScreenDebug.has(itemName):
onScreenDebug.remove(itemName)
# these functions compensate for actors that are modeled facing the viewer but need
# to face away from the camera in the game
def faceAwayFromViewer(self):
self.getGeomNode().setH(180)
def faceTowardsViewer(self):
self.getGeomNode().setH(0)