class of the game items that can be collected by the player and are
positioned onm top/bottom of platforms
|
|
|
|
Vector
|
|
|
|
setPosition(self)
set an item at top or bottom of a parented platform |
source code
|
|
|
|
setRotation(self)
sets the smooth infinite rotation in the right plane of the item
object |
source code
|
|
|
|
setParentStatus(self,
has_item=False,
item_object=None)
sets the staus of the parent object, if it has an item or not and
when 'yes', assign the item to it |
source code
|
|
|
|
|
|
Boolean
|
getAlive(self,
prota_pos)
checks if object's lifetime is expired or object is out of game view |
source code
|
|
|
|
|
|
MY_GameObject
|
parentObject
the items parent object to know which object can be relieved of the
item
|
|
Float
|
positionRotationX
specifies the tilt of the item dependent on its ground plane
|
|
Float
|
positionRotationY
specifies the tilt of the item dependent on its ground plane
|
|
Float
|
rotationDuration
how long shall it take to make a full circle rotation
|
|
Float
|
rotationStart
start time of the circle rotation
|
|
Integer (0,1,2)
|
worldPlane
the number of the its current plane
|
|
Integer
|
elementId
the unique identifier for this object
|
|
KX_GameObject
|
gObject
a blender game object
|
|
Integer
|
lifeTime
specifies the lifetime of the spawned item (negative = infinite)
|
|
String
|
name
the name that represents the object in MY_SingleScene
|
|
String
|
type
a name which identifies the object as a specific class in
MY_SingleScene
|