direct.showbase.ShadowPlacer

from direct.showbase.ShadowPlacer import ShadowPlacer

ShadowPlacer.py places a shadow.

It traces a line from a light source to the opposing surface. Or it may do that later, right now it puts a node on the surface under the its parent node.

Inheritance diagram

Inheritance diagram of direct.showbase.ShadowPlacer

class ShadowPlacer(cTrav, shadowNodePath, wallCollideMask, floorCollideMask)[source]

Bases: direct.showbase.DirectObject.DirectObject

__init__(self, cTrav, shadowNodePath, wallCollideMask, floorCollideMask)[source]
activeCount = 0
count = 0
debugDisplay(self)[source]

for debugging

delete(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
off(self)[source]

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(self)[source]

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

oneTimeCollide(self)[source]

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

resetToOrigin(self)[source]
setup(self, cTrav, shadowNodePath, wallCollideMask, floorCollideMask)[source]

Set up the collisions