Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ShadowPlacer Class Reference
Inheritance diagram for ShadowPlacer:
DirectObject

Public Member Functions

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

Public Attributes

 activeCount
 
 count
 
 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
 accept_once = acceptOnce
 
 add_task = addTask
 
 detect_leaks = detectLeaks
 
 do_method_later = doMethodLater
 
 get_all_accepting = getAllAccepting
 
 ignore_all = ignoreAll
 
 is_accepting = isAccepting
 
 is_ignoring = isIgnoring
 
 remove_all_tasks = removeAllTasks
 
 remove_task = removeTask
 

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 
- Protected Attributes inherited from DirectObject
 _taskList
 

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from DirectObject.

Member Function Documentation

◆ debugDisplay()

debugDisplay ( self)
for debugging

◆ delete()

delete ( self)

◆ off()

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()

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

◆ oneTimeCollide()

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()

resetToOrigin ( self)

◆ setup()

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

Member Data Documentation

◆ activeCount [1/2]

int activeCount = 0
static

◆ activeCount [2/2]

activeCount

◆ count [1/2]

int count = 0
static

◆ count [2/2]

count

◆ cRay

cRay

◆ cRayBitMask

cRayBitMask

◆ cRayNodePath

cRayNodePath

◆ cTrav

cTrav

◆ isActive

isActive

◆ lifter

lifter

◆ notify

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

◆ shadowNodePath

shadowNodePath