Package populus :: Module World :: Class PropManager
[frames] | no frames]

Class PropManager


Contains the geometry of all possible props and allows you to create instances of them in the environment

Instance Methods
 
__init__(self, parent=render, xmlfile=None)
All props will be created under the partent node passed in here.
 
add(self, name, model, x=0, y=0, radius=1.0)
Add a new prop with a new name and the appearance indicated by 'model'.
 
getNodePath(self, name)

Inherited from direct.showbase.DirectObject.DirectObject: accept, acceptOnce, addTask, classTree, detectLeaks, doMethodLater, getAllAccepting, ignore, ignoreAll, isAccepting, isIgnoring, removeAllTasks, removeTask

Method Details

__init__(self, parent=render, xmlfile=None)
(Constructor)

 

All props will be created under the partent node passed in here. The initializer scans through the 'Props' folder and makes all *.egg files there available as models (with the lower case version of the file name without the extension).

Overrides: direct.showbase.DirectObject.DirectObject.__init__

add(self, name, model, x=0, y=0, radius=1.0)

 

Add a new prop with a new name and the appearance indicated by 'model'. Places the prop at the indicated location.