mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
added faceAwayFromViewer and faceTowardsViewer
This commit is contained in:
parent
dc6b1cbe79
commit
7ec9afa83d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user