Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ShadowPlacer Class Reference
Inheritance diagram for ShadowPlacer:
DirectObject

Public Member Functions

def __init__ (self, cTrav, shadowNodePath, wallCollideMask, floorCollideMask)
 
def debugDisplay (self)
 
def delete (self)
 
def off (self)
 
def on (self)
 
def oneTimeCollide (self)
 
def resetToOrigin (self)
 
def setup (self, cTrav, shadowNodePath, wallCollideMask, floorCollideMask)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, *args, **kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, *args, **kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 cRay
 
 cRayBitMask
 
 cRayNodePath
 
 cTrav
 
 isActive
 
 lifter
 
 shadowNodePath
 

Static Public Attributes

int activeCount = 0
 
int count = 0
 
 notify = DirectNotifyGlobal.directNotify.newCategory("ShadowPlacer")
 
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  cTrav,
  shadowNodePath,
  wallCollideMask,
  floorCollideMask 
)

Member Function Documentation

◆ debugDisplay()

def debugDisplay (   self)
for debugging

◆ delete()

def delete (   self)

◆ off()

def off (   self)
Turn off the shadow placement.  The shadow will still be
there, but the z position will not be updated until a call
to on() is made.

◆ on()

def on (   self)
Turn on the shadow placement.  The shadow z position will
start being updated until a call to off() is made.

◆ oneTimeCollide()

def oneTimeCollide (   self)
Makes one quick collision pass for the avatar, for instance as
a one-time straighten-things-up operation after collisions
have been disabled.

◆ resetToOrigin()

def resetToOrigin (   self)

◆ setup()

def setup (   self,
  cTrav,
  shadowNodePath,
  wallCollideMask,
  floorCollideMask 
)
Set up the collisions

Member Data Documentation

◆ activeCount

int activeCount = 0
static

◆ count

int count = 0
static

◆ cRay

cRay

◆ cRayBitMask

cRayBitMask

◆ cRayNodePath

cRayNodePath

◆ cTrav

cTrav

◆ isActive

isActive

◆ lifter

lifter

◆ notify

notify = DirectNotifyGlobal.directNotify.newCategory("ShadowPlacer")
static

◆ shadowNodePath

shadowNodePath