BGE Development: mouse look actuator part 4

The Python interface is now completed. It took some time to get around to completing this as I’ve been busy working on my arcade machine.

With the Python side of things finished the actuator is pretty much complete. I’ve got some testing to do before I put together a patch and a build on graphicall. I’ve also got to finish parts 3 and 4 of the tutorial on creating it, which I should get done soon. Here’s the Python attributes:

KX_MouseLookActuator.sensitivity
Type: float
The sensitivity of the mouse motion

KX_MouseLookActuator.smoothing
Type: integer
The speed at which the rotation is applied

KX_MouseLookActuator.xcap
Type: float
Limits rotation based on the mouse’s x-axis movement, units in radians

KX_MouseLookActuator.ycap
Type: float
Limits rotation based on the mouse’s y-axis movement, units in radians

KX_MouseLookActuator.xmap
Type: integer (0=X, 1=Y, 2=Z, 3=None)
The axis an object is rotated on based on the mouse’s x-axis movement

KX_MouseLookActuator.ymap
Type: integer (0=X, 1=Y, 2=Z, 3=None)
The axis an object is rotated on based on the mouse’s y-axis movement

KX_MouseLookActuator.xlocal
Type: bool
Rotation in local/global coordinates

KX_MouseLookActuator.ylocal
Type: bool
Rotation in local/global coordinates

KX_MouseLookActuator.xinvert
Type: bool
Invert rotation

KX_MouseLookActuator.yinvert
Type: bool
Invert rotation

Advertisements

~ by Jay on May 17, 2012.

3 Responses to “BGE Development: mouse look actuator part 4”

  1. wow cool when is this going to be completed?

    Like

  2. I really should get around to finishing this! I’ve got a few things I’d like to rethink before releasing a patch and a giant code tidy. It’s not something I could ever see getting into the Blender trunk as it is my first BGE project and it kinda breaks the SCA concept a little. However, if you can build the source you’re welcome to use the patch once it’s released, or follow the tutorials on creating it.

    Like

  3. Really great actuator. Wondering is it possible to alter the properties like smoothing and sensitivity at game runtime with your actuator?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: