oldschool-toontown/toontown/racing/DroppedGag.py
Little Cat 1801d2b9fb
all: replace pandac.PandaModules imports.
UD/AI + Client boots up.
2022-12-16 20:40:57 -04:00

24 lines
692 B
Python

from panda3d.core import *
from direct.gui.DirectGui import *
from panda3d.core import *
from direct.interval.IntervalGlobal import *
from otp.avatar import ShadowCaster
class DroppedGag(NodePath, ShadowCaster.ShadowCaster):
def __init__(self, name, geom):
NodePath.__init__(self, name)
ShadowCaster.ShadowCaster.__init__(self, False)
self.gag = geom.copyTo(self)
self.initializeDropShadow()
self.setActiveShadow()
self.dropShadow.setScale(1)
def delete(self):
ShadowCaster.ShadowCaster.delete(self)
NodePath.removeNode(self)
self.gag = None
return
def getGeomNode(self):
return self.gag