How to rotate a plane by player controls

Hi, I try to controll (rotate) a Plane by Keys w,a,s,d in x and y so the sphere on it should move. Can me give somebody an example please how to do this?

Easiest method - use Level Blueprint

When you have the Actor (Plane) on the map - click it, go to Level Blueprint (while having the plane selected), right click somewhere and “add reference to ‘plane’”

Now you have access to it

Add a few more nodes for moving the plane (but better head for so called Action/Axis Mappings, no big deal here but better to do that in your Projects)

Now f.ex. W key - this node (and any other key press node as well) has Pressed and Released - you need only the Pressed variant

Pull out from the Plane Reference you created and “add world offset” - play around with the Location values to see what will work for you

Pay attention - this is ADD World Offset = you just need a small numbers like 1-5 to move it fast enough in a direction

2 Likes

Thx, works fine

1 Like

Wonderful :ok_hand: