BGE: New Mouse Actuator
Disclaimer: The author of this patch is Geoffrey Gollmer (gomer). I only updated the patch to the current git master status, reworked several parts to fit well with current coding style and applied several fixes.
This actuator allows users to show/hide the mouse cursor using logic bricks, as well as control object rotation with a mouse in the BGE.
The mouse rotation is flexible enough to allow any type of mouse look, as well as banking for flight controls.
{F94520}
{F91859}
Blend file for testing Mouse actuator (with default parameters and crosshair): {F94920}
Reviewers: moguri
Reviewed By: moguri
CC: gomer, lordodin
Differential Revision: https://developer.blender.org/D559
This commit is contained in:
committed by
Mitchell Stokes
parent
11d1fea285
commit
7d99a4ded9
@@ -72,6 +72,7 @@ See the actuator's reference for available methods
|
||||
* :class:`~bge.types.KX_CameraActuator`
|
||||
* :class:`~bge.types.KX_ConstraintActuator`
|
||||
* :class:`~bge.types.KX_GameActuator`
|
||||
* :class:`~bge.types.KX_MouseActuator`
|
||||
* :class:`~bge.types.KX_NetworkMessageActuator`
|
||||
* :class:`~bge.types.KX_ObjectActuator`
|
||||
* :class:`~bge.types.KX_ParentActuator`
|
||||
@@ -764,6 +765,16 @@ See :class:`bge.types.KX_GameActuator`
|
||||
.. data:: KX_GAME_SAVECFG
|
||||
.. data:: KX_GAME_LOADCFG
|
||||
|
||||
.. _mouse-actuator:
|
||||
|
||||
---------------
|
||||
Mouse Actuator
|
||||
---------------
|
||||
|
||||
.. data:: KX_ACT_MOUSE_OBJECT_AXIS_X
|
||||
.. data:: KX_ACT_MOUSE_OBJECT_AXIS_Y
|
||||
.. data:: KX_ACT_MOUSE_OBJECT_AXIS_Z
|
||||
|
||||
---------------
|
||||
Parent Actuator
|
||||
---------------
|
||||
|
||||
Reference in New Issue
Block a user