Blender Game Engine Mouse Pointer

This menu gives various options for conditions for running the Game Engine. Note that this menu is only available when the render engine is set to Blender Game. Start Game Run game in Game Engine (P or Shift-P when the mouse cursor is over the 3D View editor). Show Debug Properties Show properties marked for debugging while game runs. Note that while the Game Engine is running in either player, the computer’s mouse and keyboard are captured by the game and by default, the mouse cursor is not visible. To exit the game, press the Esc key. Mouse Actuator¶. The Mouse Actuator allows two modes of operation, to show/hide the mouse cursor or to control object rotation with the mouse. The mouse rotation is flexible enough to allow any type of mouse look as well as banking for flight controls. A need that a object as a empty or cube appears in the place that the mouse cursor is clicked and when a mouse cursor click in other place this object must disappear and appear automatically in this other place. I will make the characters find the position of this object through the radar sensor and move to its direction until to be near of it.

base class — SCA_IActuator

class SCA_MouseActuator(SCA_IActuator)

The mouse actuator gives control over the visibility of the mouse cursor and rotates the parent object according to mouse movement.

reset()

Undoes the rotation caused by the mouse actuator.

visible

The visibility of the mouse cursor.

Type

boolean

use_axis_x

Mouse movement along the x axis effects object rotation.

Type

boolean

use_axis_y

Mouse movement along the y axis effects object rotation.

Type

boolean

threshold

Amount of movement from the mouse required before rotation is triggered.

Type

list (vector of 2 floats)

The values in the list should be between 0.0 and 0.5.

Blender Game Engine Mouse Pointer
reset_x

Mouse is locked to the center of the screen on the x axis.

Type

boolean

reset_y

Mouse is locked to the center of the screen on the y axis.

3d mouse blender
Type

boolean

object_axis

The object’s 3D axis to rotate with the mouse movement. ([x, y])

Type

list (vector of 2 integers from 0 to 2)

  • KX_ACT_MOUSE_OBJECT_AXIS_X

  • KX_ACT_MOUSE_OBJECT_AXIS_Y

  • KX_ACT_MOUSE_OBJECT_AXIS_Z

local_x
Blender Game Engine Mouse Pointer

Rotation caused by mouse movement along the x axis is local.

Type

boolean

local_y

Rotation caused by mouse movement along the y axis is local.

Type

boolean

sensitivity

The amount of rotation caused by mouse movement along the x and y axis.

Type

list (vector of 2 floats)

Negative values invert the rotation.

limit_x

The minimum and maximum angle of rotation caused by mouse movement along the x axis in degrees. limit_x[0] is minimum, limit_x[1] is maximum.

Blender 3d Game Engine

Type

list (vector of 2 floats)

limit_y

The minimum and maximum angle of rotation caused by mouse movement along the y axis in degrees. limit_y[0] is minimum, limit_y[1] is maximum.

Blender Game Engine Mouse Pointer Download

Type

list (vector of 2 floats)

angle

The current rotational offset caused by the mouse actuator in degrees.

Type

list (vector of 2 floats)

The Mouse Sensor detects mouse events.

Blender Game Engine Mouse Pointer Cursors

Properties¶

Mickey

See Sensor Common Options for common options.

The controller consist only of a list of types of mouse events.A FALSE pulse is given when any of these conditions ends.

Mouse over any
Gives a TRUE pulse if the mouse moves over any game object.
Mouse over
Gives a TRUE pulse if the mouse moves over the owner object.
Movement
Any movement with the mouse causes a stream of TRUE pulses.
Wheel Down
Causes a stream of TRUE pulses as the scroll wheel of the mouse moves down.
Wheel Up
Causes a stream of TRUE pulses as the scroll wheel of the mouse moves up.
Right button
Gives a TRUE pulse.
Middle button
Gives a TRUE pulse.
Left button
Gives a TRUE pulse.

3d Mouse Blender

Note

Blender Game

There is no logic brick for specific mouse movement andreactions (such as first person camera), these have to be coded in Python.