Back to search
ExampleMovement

Create a Blueprint Actor that rotates slowly on EventTick using a RotationSpeed variable

Updated 3mo ago1 look-ups
UE 5.4UE 5.7#rotation#tick#turntable#beginner

Blueprint JSON

The structure WoalzCraft generates. Paste into the plugin to instantiate as a real Blueprint.

{
  "nodes": [
    {
      "id": "n_tick",
      "position": {
        "x": 0,
        "y": 0
      },
      "node_type": "EventTick"
    },
    {
      "id": "n_get_speed",
      "position": {
        "x": 200,
        "y": 100
      },
      "node_type": "GetVariable",
      "variable_name": "RotationSpeed"
    },
    {
      "id": "n_multiply",
      "position": {
        "x": 400,
        "y": 50
      },
      "node_type": "Multiply_FloatFloat"
    },
    {
      "id": "n_make_rot",
      "position": {
        "x": 600,
        "y": 50
      },
      "node_type": "MakeRotator"
    },
    {
      "id": "n_add_rot",
      "position": {
        "x": 800,
        "y": 0
      },
      "node_type": "AddActorWorldRotation"
    }
  ],
  "variables": [
    {
      "name": "RotationSpeed",
      "type": "float",
      "default_value": "30.0"
    }
  ],
  "connections": [
    {
      "to_pin": "execute",
      "to_node": "n_add_rot",
      "from_pin": "then",
      "from_node": "n_tick"
    },
    {
      "to_pin": "A",
      "to_node": "n_multiply",
      "from_pin": "Delta Seconds",
      "from_node": "n_tick"
    },
    {
      "to_pin": "B",
      "to_node": "n_multiply",
      "from_pin": "RotationSpeed",
      "from_node": "n_get_speed"
    },
    {
      "to_pin": "Yaw",
      "to_node": "n_make_rot",
      "from_pin": "ReturnValue",
      "from_node": "n_multiply"
    },
    {
      "to_pin": "DeltaRotation",
      "to_node": "n_add_rot",
      "from_pin": "ReturnValue",
      "from_node": "n_make_rot"
    }
  ],
  "parent_class": "Actor",
  "blueprint_name": "BP_Turntable"
}