Game Types (bge.types)
Introduction
This module contains the classes that appear as instances in the Game Engine. A script must interact with these classes if it is to affect the behaviour of objects in a game.
The following example would move an object (i.e. an instance of
KX_GameObject
) one unit up.
# bge.types.SCA_PythonController
cont = bge.logic.getCurrentController()
# bge.types.KX_GameObject
obj = cont.owner
obj.worldPosition.z += 1
To run the code, it could be placed in a Blender text block and executed with
a SCA_PythonController
logic brick.
Index
- BL_ActionActuator(SCA_IActuator)
- BL_ArmatureActuator(SCA_IActuator)
- BL_ArmatureBone(EXP_PyObjectPlus)
- BL_ArmatureChannel(EXP_PyObjectPlus)
- BL_ArmatureConstraint(EXP_PyObjectPlus)
- BL_ArmatureObject(KX_GameObject)
- BL_Shader(EXP_PyObjectPlus)
- BL_Texture(EXP_Value)
- EXP_ListValue(EXP_PropValue)
- EXP_PropValue(EXP_Value)
- EXP_PyObjectPlus
- EXP_Value(EXP_PyObjectPlus)
- KX_2DFilter(BL_Shader)
- KX_2DFilterManager(EXP_PyObjectPlus)
- KX_2DFilterOffScreen(EXP_Value)
- KX_ArmatureSensor(SCA_ISensor)
- KX_BatchGroup(EXP_Value)
- KX_BlenderMaterial(EXP_PyObjectPlus)
- KX_BoundingBox(EXP_PyObjectPlus)
- KX_Camera(KX_GameObject)
- KX_CameraActuator(SCA_IActuator)
- KX_CharacterWrapper(EXP_PyObjectPlus)
- KX_CollisionContactPoint(EXP_Value)
- KX_CollisionSensor(SCA_ISensor)
- KX_ConstraintActuator(SCA_IActuator)
- KX_ConstraintWrapper(EXP_PyObjectPlus)
- KX_CubeMap(KX_TextureRenderer)
- KX_FontObject(KX_GameObject)
- KX_GameActuator(SCA_IActuator)
- KX_GameObject(SCA_IObject)
- KX_LibLoadStatus(EXP_PyObjectPlus)
- KX_LightObject(KX_GameObject)
- KX_LodLevel(EXP_PyObjectPlus)
- KX_LodManager(EXP_PyObjectPlus)
- KX_Mesh(EXP_Value)
- KX_MouseActuator(SCA_IActuator)
- KX_MouseFocusSensor(SCA_MouseSensor)
- KX_MovementSensor(SCA_ISensor)
- KX_NavMeshObject(KX_GameObject)
- KX_NearSensor(KX_CollisionSensor)
- KX_NetworkMessageActuator(SCA_IActuator)
- KX_NetworkMessageSensor(SCA_ISensor)
- KX_ObjectActuator(SCA_IActuator)
- KX_ParentActuator(SCA_IActuator)
- KX_PlanarMap(KX_TextureRenderer)
- KX_PolyProxy(SCA_IObject)
- KX_PythonComponent(EXP_Value)
- KX_RadarSensor(KX_NearSensor)
- KX_RaySensor(SCA_ISensor)
- KX_SCA_AddObjectActuator(SCA_IActuator)
- KX_SCA_DynamicActuator(SCA_IActuator)
- KX_SCA_EndObjectActuator(SCA_IActuator)
- KX_SCA_ReplaceMeshActuator(SCA_IActuator)
- KX_Scene(EXP_PyObjectPlus)
- KX_SceneActuator(SCA_IActuator)
- KX_SoundActuator(SCA_IActuator)
- KX_StateActuator(SCA_IActuator)
- KX_SteeringActuator(SCA_IActuator)
- KX_TextureRenderer(EXP_Value)
- KX_TrackToActuator(SCA_IActuator)
- KX_VehicleWrapper(EXP_PyObjectPlus)
- KX_VertexProxy(SCA_IObject)
- KX_VisibilityActuator(SCA_IActuator)
- KX_WorldInfo(EXP_PyObjectPlus)
- SCA_2DFilterActuator(SCA_IActuator)
- SCA_ANDController(SCA_IController)
- SCA_ActuatorSensor(SCA_ISensor)
- SCA_AlwaysSensor(SCA_ISensor)
- SCA_DelaySensor(SCA_ISensor)
- SCA_IActuator(SCA_ILogicBrick)
- SCA_IController(SCA_ILogicBrick)
- SCA_ILogicBrick(EXP_Value)
- SCA_IObject(EXP_Value)
- SCA_ISensor(SCA_ILogicBrick)
- SCA_InputEvent(EXP_PyObjectPlus)
- SCA_JoystickSensor(SCA_ISensor)
- SCA_KeyboardSensor(SCA_ISensor)
- SCA_MouseSensor(SCA_ISensor)
- SCA_NANDController(SCA_IController)
- SCA_NORController(SCA_IController)
- SCA_ORController(SCA_IController)
- SCA_PropertyActuator(SCA_IActuator)
- SCA_PropertySensor(SCA_ISensor)
- SCA_PythonController(SCA_IController)
- SCA_PythonJoystick(EXP_PyObjectPlus)
- SCA_PythonKeyboard(EXP_PyObjectPlus)
- SCA_PythonMouse(EXP_PyObjectPlus)
- SCA_RandomActuator(SCA_IActuator)
- SCA_RandomSensor(SCA_ISensor)
- SCA_VibrationActuator(SCA_IActuator)
- SCA_XNORController(SCA_IController)
- SCA_XORController(SCA_IController)