class of the enemy (hurdle) with its artificial intelligence or
something like that ;)
|
|
|
|
|
|
|
|
setOrientation(self,
prota_pos)
sets the hurdle z-axis to the world gravity orientation, so the
hurdle looks right |
source code
|
|
|
String
|
|
|
|
setSpeedToPoint(self)
sets the vectored speed of the hurdle |
source code
|
|
|
|
|
|
Boolean
|
getAlive(self,
prota_pos)
checks if object's lifetime is expired or object is out of game view |
source code
|
|
|
Vector
|
|
|
|
|
|
MY_GameObject
|
groundObject
the current ground object of the hurdle
|
|
Float
|
speed
the speed of the hurdle
|
|
Vector
|
targetPoint
the point the hurdle has to go to
|
|
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
|
|
Integer (0,1,2)
|
worldPlane
the number of the its current plane
|