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

Class Prop

A temporary class for props, mainly meant for testing avatars' collision avoidance and objects awareness. This class will be probably refactored in the future.

Instance Methods
 
__init__(self, name, modelName, modelNodePath, parent=render, pos=(0, 0, 0), radius=1.0, dimension=(1, 1, 0.5), initColor=Vec4(0, 0, 0, 0), category='')
 
__str__(self)
 
isPerson(self)
Assert that a Prop is not a person.
 
isRemoved(self)
Check if the current instance is been removed.
 
setAttribute(self, name, value)
 
getAttribute(self, name)
 
position(self)
 
heading(self)
 
radius(self)
 
speed(self)
 
velocity(self)
 
setVelocity(self, x, y, z)
 
getNodePath(self)
 
getColor(self)
 
getPhysActor(self)
 
getName(self)
 
isMoving(self)
 
getPos(self)
 
setPos(self, x, y, z)
 
reparentTo(self, newParent)
Class Variables
  SHOP_CATEGORY = 'Shop'
  CAR_CATEGORY = 'Car'
  OTHER_CATEGORY = 'OtherObject'
  NO_CATEGORY = ''