Module MyGameActiveParts :: Class MY_SkySphere
[hide private]
[frames] | no frames]

Class MY_SkySphere

source code

MyGameObjects.MY_GameObjectActive --+
                                    |
                                   MY_SkySphere

class of the unversum sphere which centers on the player

Instance Methods [hide private]
 
__init__(self, scene, element) source code
 
setAction(self, axis, location)
sets the sky dome rotation
source code
    Inherited from MyGameObjects.MY_GameObjectActive
 
deleteObject(self)
deletes object and removes it from the scene
source code
List [vx, vy, vz]
getLinearVelocity(self, local)
if 'local = True' it gets the local linear velocity otherwise it gets the global linear velocity
source code
Vector
getPosition(self)
gets the world position
source code
Matrix
getWorldOrientation(self)
gets the world orientation
source code
 
setLinearVelocity(self, speed, local=0)
if 'local = True' it sets the local linear velocity otherwise it sets the global linear velocity
source code
 
setLocalOrientation(self, orientation)
sets the local orientation
source code
 
setPosition(self, position)
sets the world position
source code
Instance Variables [hide private]
    Inherited from MyGameObjects.MY_GameObjectActive
KX_GameObject gObject
a blender game object
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
Method Details [hide private]

__init__(self, scene, element)
(Constructor)

source code 
Parameters:
  • scene (KX_Scene) - the blender scene object which holds all objects
  • element (String) - the name of the object which shall included into the MY_SingleScene class
Overrides: MyGameObjects.MY_GameObjectActive.__init__

setAction(self, axis, location)

source code 

sets the sky dome rotation

Parameters:
  • axis (Integer (0,1,2)) - the rotation axis of the sky sphere
  • location (Vector) - the new position of the sphere's centre