Logic Gadgets: Rotation Sensor

 

Icon
Name of gadget Rotation sensor
Section Sensors & Input
Number of Tweak pages 3
Author LadylexUK, QuietlyWrong
Last updated 20 Feb 2019 [Beta]

Description

This gadget detects rotation in an object (direction and speed). It can be used for steering wheels to detect how fast to turn a vehicle, detect when to play sound effects or rumble effects, and activate any action.

Example Tutorial (from Media Molecule)

  1. Stamp a cube.
  2. Snap a rotation sensor to the cube.
  3. Snap a rotator to the cube.
  4. Add a rumbler to the scene
  5. Tweak the rotation sensor menu and connect angular velocity (overall) to the power port on the rumbler
  6. Use start time
  7. Your controller should rumble as the cube rotates.

Tweak Menus

Click on the arrows to view

Tweak Menu 1: Important Properties & I/O
  1. Tweak Menu page 1: Important Properties & I/O
  2. Angular Velocity (Overall)
    2b. Output
  3. Angular Velocity (X Axis)
    3b. Output
  4. Angular Velocity (Y Axis)
    4b. Output
  5. Angular Velocity (Z Axis)
    5b. Output
  6. Local Space
    6a. Input
    6b Output
  7. Relative to Object
  8. Power

Note that the some of the angular velocity outputs can have positive or negative values, depending on the direction of rotation

  1. Menu page indicator
  2. Angular Velocity (Overall)
    Produces a signal that indicates rotation speed in all directions
  3. Angular Velocity (X Axis)
    Produces a signal that indicates rotation speed about the x axis only
  4. Angular Velocity (Y Axis)
    Produces a signal that indicates rotation speed about the y axis only
  5. Angular Velocity (Z Axis)
    Produces a signal that indicates rotation speed about the z axis only
  6. Local Space
    Use this to toggle whether or not the rotational axes being used are (if off) the global ones (those defined for the whole scene) or (if on) those specific to the obect itself (use the axis handles on the object itself to rotate these to the desired orientation)
  7. Relative to Object
    TBA [I believe you can specify another object whose rotation this gadget is relative to -QW]
  8. Power
    This is where you turn the gadget on/off
Tweak Menu 2: Outputs
  1. Tweak Menu page 2: Outputs
  2. Angular Acceleration (Overall)
    2b. Output
  3. Angular Acceleration (X Axis)
    3b. Output
  4. Angular Acceleration (Y Axis)
    4b. Output
  5. Angular Acceleration (Z Axis)
    5b. Output
  6. Power

Note that the various angular acceleration outputs can have positive or negative values, depending on the direction and changing rate of rotation

  1. Menu page indicator
  2. Angular Acceleration (Overall)
    This sends a signal of the amount of acceleration the rotator has in any axis
  3. Angular Acceleration (X Axis)
    This sends a signal of the amount of acceleration the rotator has about the x axis only
  4. Angular Acceleration (Y Axis)
    This sends a signal of the amount of acceleration the rotator has about the y axis only
  5. Angular Acceleration (Z Axis)
    This sends a signal of the amount of acceleration the rotator has about the z axis only
  6. Power
    This is where you turn the gadget on/off
Tweak Menu 3: Miscellaneous & I/O
  1. Tweak Menu page 3: Miscellaneous and I/O
  2. Sense Rotation
  3. Orientation
    3a. Input
    3b. Output
  4. Power
  1. Menu page indicator
  2. Sense Rotation
    Connect a wire from this input to the object that you want to test for rotational movement. Alternatively, if you snap the gadget to an object, or to a microchip snapped on the object, that object defaults to being the one tested
  3. Orientation
    This outputs a fat wire carrying the current orientation of the object being tested in all three axes
  4. Power
    This is where you turn the gadget on/off

Lex Tips

Useful Tutorials

Advertisements

Comments and Feedback

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: