UE4 Camera Rotation Bueprint

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 86

  • @Doombotdude2
    @Doombotdude2 3 роки тому +4

    I appreciate that you left in the part where the nodes didn't show up when you searched for them. Thanks for the tutorial.

  • @jdpitt6
    @jdpitt6 3 роки тому +4

    6 different tutorials on panning and this is the only one to tell me to check the pawn control rotation box...Thank you for fixing my problem.

  • @porterdesignandmotion
    @porterdesignandmotion Рік тому +4

    I know this is an old tutorial, but I am using this to set up a free orbiting camera around a stationary vehicle in my scene. Was curious what I could do to prevent my camera from orbiting through the floor (assume need to set a limit to the vertical movement) as well as setting up the vertical movement to be inverted. This tutorial was very easy to follow. Thank you so much!

  • @FreeBananaCo
    @FreeBananaCo 5 років тому +12

    Hey all!
    I was having some trouble initially getting this work so i thought i would post some things i found to get mine working.
    1. For some reason my spring arm wasn't rotating with the "Use Pawn Control Rotation" check box, i got around this by plugging the "Get Control Rotation" straight into a SetWorldRotation linked to my spring arm. (Only Pitch and Yaw)
    2. You can clamp this rotation if you don't want the camera going under the map. Use a branch to check if the Y (Pitch) value is over 360 (Roughly Horizontal) and if true, use Set Control Rotation to set the Pitch back to 360. You need to plug your Get Control Rotation Z (Yaw) value into the Set Control Rotation Z (Yaw) slot. To get the Set Control Rotation node you need to Get Player Controller and drag off that.
    Okay I hope that helps someone and isn't too confusing.

    • @blain4702
      @blain4702 2 роки тому

      hello, looks like i have a problem which you described how to fix in your second point, however I find it hard to implement in my event graph. where should the true&false pins go from the branch?

    • @dbzandrs2
      @dbzandrs2 2 роки тому

      @@blain4702 on event begin play 'get player camera manager' and from it set pitch max and min

  • @chenchen7877
    @chenchen7877 5 років тому +13

    thanks for your tutorial , how can i limit the camera angle not under the ground plane?

  • @cellobass6195
    @cellobass6195 4 роки тому +4

    Thank you SO much for this tutorial. I had trouble with my camera setup and I was struggling a lot to improve anything. I was about to give up or change my project dramatically to work around this, but thanks to your video, I now have exactly what I wanted. So thanks a lot sir! You just earned yourself a subscriber.

  • @In9design
    @In9design 4 роки тому +6

    I want to rotate when mouse click

  • @MrSmith01
    @MrSmith01 5 років тому +14

    5:46 guys, why there's no "Set Control Rotation" function in my project? (I'm using 4.21 version of unreal)
    update: uh, I had to add "Get Player Controller" node first

    • @jefawk9603
      @jefawk9603 3 роки тому +1

      thanks for this

    • @bloxdenn3121
      @bloxdenn3121 3 роки тому +1

      How do I connect the Get Player Controller to the input?

  • @dutchs5
    @dutchs5 11 місяців тому

    Thank you so much!!! It is actually quiet simple compared to other videos where they made a rocket science of it!

  • @amirhamzepourshafi8322
    @amirhamzepourshafi8322 9 місяців тому +2

    Why mouse wheel won't work for me? This is driving me crazy, I have enabled input, enabled mouse in the player controller as well.

  • @vfxwarriors
    @vfxwarriors Рік тому

    Thanks a lot bro ❤🎉. I'm facing trouble from last 2 days. You are my savior. Thank you very much.

  • @OperationDx1
    @OperationDx1 4 роки тому +3

    This is cool but what if I only want my rotation activated with a right click and hold.

    • @thegamedevchannel3063
      @thegamedevchannel3063 3 роки тому +1

      Hi! You would be able to do this if you put a branch before you add the rotation input with the condition to check if your right mouse button was currently pressed. Hope that helps!

  • @danielspagnol1370
    @danielspagnol1370 4 роки тому +3

    can you blend between two camers which have the orbit functionality?

  • @otohmatthew5467
    @otohmatthew5467 3 роки тому +6

    Great tutorial, thank you! Really appreciate this.
    One thing that doesn't work correctly is that you can't change the rotation of the SpringArm once you enable Use Pawn Control Rotation. At 7:06 you end up losing your -15 SpringArm rotation once pawn control rotation is enabled. Any idea how I might be able to rotate the spring arm so that I can change the default starting point? Thanks!

    • @mrxcs
      @mrxcs 6 місяців тому +1

      Did you figure it out?

  • @flipper4440
    @flipper4440 4 роки тому +3

    Followed this tutorial, I get the following error on compile. any ideas?
    This blueprint (self) is not a Controller, therefore ' Target ' must have a connection.
    [2440.65] Compile of PhysicsBallBP failed. 1 Fatal Issue(s) 0 Warning(s) [in 256 ms] (/Game/RollingBP/Blueprints/PhysicsBallBP.PhysicsBallBP)
    Update: Just redo the get control rotation part; itll fix it

    • @SaadViz
      @SaadViz 4 роки тому

      Attach the "Get Character Controller" pin to the "Get Control Rotation". That solved it for me.

  • @FINALFORMSTUDIOS
    @FINALFORMSTUDIOS 4 роки тому +1

    Awesome video thank you so much. Wondering how it is possible to have a set path the camera can follow as you scroll.

    • @GameDevMan
      @GameDevMan  4 роки тому

      Try to use a Find Look At Rotation between the camera location and the player location, then set the output to the camera's rotation.

  • @framais
    @framais 5 років тому

    Thanks for this tutorial, very easy and quick to implement!

  • @williamlacrosse9389
    @williamlacrosse9389 4 роки тому +2

    Dude, you saved my life! Thx

  • @thecuong8815
    @thecuong8815 Рік тому

    I have this setup, and it works perfectly fine. However, when I tried to render the camera movement using a sequencer, I noticed that scrolling with the middle mouse to change the arm length caused the spring arm origin to shift. How can I resolve this issue ?

  • @marcoseliasmep
    @marcoseliasmep Рік тому

    Wow that’s so easy, thanks a lot!

  • @tomaszhabza3625
    @tomaszhabza3625 Рік тому

    Cool! thank you :) is it possible to change mous input to button for example input 1 right input 2 left?

  • @Greedisgood-qy2ed
    @Greedisgood-qy2ed 4 роки тому +1

    This video helped me a lot, thank you!

  • @КОД-ш8у
    @КОД-ш8у 5 років тому +1

    как ограничить угол поворота камеры? например мне нужно что бы камера по оси Х поворачивалась только на 90 и минус 90 градусов (словно голова на шее у человека, мы же не можем голову повернуть на 180 градусов, верно?)
    How to limit the angle of rotation of the camera? for example, I need the camera to rotate along the X axis only 90 and minus 90 degrees (as if the head is on the neck of a person, we can't turn the head 180 degrees, right?)

  • @zoeyisaneko151
    @zoeyisaneko151 3 роки тому

    why am I physically moving the pawn instead of just the camera?

  • @selimsaidi378
    @selimsaidi378 2 роки тому

    hi there can you cover this with touch imput , swype and pinch , thank you very much

  • @lordkanesoulreaver
    @lordkanesoulreaver Рік тому

    after finding a 2nd vidoe on what was missing to get the error to disaper the ship will now rotate freely but the camra ius stuck at the defoult north map x axis

    • @lordkanesoulreaver
      @lordkanesoulreaver Рік тому

      how do i get it to stop trying to auto face north and rezist me manuly moveing it to were i want like in the vidoe?

    • @lordkanesoulreaver
      @lordkanesoulreaver Рік тому

      after findeing a 2nd vidoe i did manige to fix the camera lock ishue

  • @erox3197
    @erox3197 3 роки тому

    the camera is jiggling stuttering while rotating around the object ? HELP

  • @terrablader
    @terrablader 5 років тому

    Thank you clearly explained! Can tell me how to switch in and out of this pawn to a camera view? I tried set view target blend with limited success. It never seems to get in the proper view of the pawn.

  • @digitalillusioncalo
    @digitalillusioncalo 3 роки тому

    Incredibile very useful tutorial! BUT, how can I drag the position of camera with wheel click? This to adjust the camera around the model. Thank you!

  • @Djonsing
    @Djonsing 2 роки тому

    How to do left to right?

  • @aricarrillo1346
    @aricarrillo1346 5 років тому

    Very helpful and super easy to follow! THank youuu!

  • @victorperezADSK
    @victorperezADSK 4 роки тому

    My rotation happens around the capera pivot, ignoring the spring arm. Any idea why?

    • @juanfranciscotorres9802
      @juanfranciscotorres9802 3 роки тому

      maybe you need to attach the camera to the spring arm, if not make sure that the target in get control rotation is Pawn

  • @glarsen4959
    @glarsen4959 4 роки тому +2

    This worked so well, thank you! I do have one question. When I enter from a main menu the camera is on point but the controls are frozen. Do you know how to fix this?

    • @Cloroqx
      @Cloroqx 4 роки тому

      You need to set your Set Input Mode Game And UI

    • @BlendertutorialNew
      @BlendertutorialNew Рік тому

      did you solve this? I have multiple cameras but only one is working. The others are still.

  • @samartini1
    @samartini1 4 роки тому

    As per juanfrancisco Torres - I am getting the same thing where the zoom control isn't working, but blueprints shows it accepting the input! Thoughts? Oh yes, very good tutorial BTW :)

  • @maxmahesh891
    @maxmahesh891 4 роки тому

    This is exactly what I want thanks for making this tutorial.. please keep in touch #cgunreal

  • @ThatWraith
    @ThatWraith 5 років тому

    This isn't working for me and I think its because I already made my game using the first person blueprint, any solution?

  • @Ruumablood
    @Ruumablood 3 роки тому

    Finally got my character to rotate with A and D and the camera doesnt follow I have it set so its on manual mode so I can Controll it WoW style with the mouse but I need it to follow with A and D rotation got to be simple...

  • @tj3603
    @tj3603 2 роки тому

    Thanks, man, this was helpful!

  • @volkereffinger7144
    @volkereffinger7144 3 роки тому

    Well done Demo! Thanks!

  • @TensinghJoshua
    @TensinghJoshua 3 роки тому

    Can you please make a tutorial to do the same for android?

  • @josephkeller2521
    @josephkeller2521 5 років тому

    you're a miracle worker, thank you!

  • @Lorecastapendragon
    @Lorecastapendragon 3 роки тому

    excellent tutorial thanks very much

  • @davideds05
    @davideds05 4 роки тому

    Really great, thank you... Do you know if there is a way to limit the pitch? For example only above the plane?

    • @GameDevMan
      @GameDevMan  4 роки тому

      Davide De Sensi maybe you could try to add a ”Clamp Angel” mode and then feed that in the the axis you want to clap.

    • @davideds05
      @davideds05 4 роки тому

      @@GameDevMan i had already tried but the problem is that the axis value of mouse y affects the speed of the movment and not his position/rotation

    • @GameDevMan
      @GameDevMan  4 роки тому +2

      @@davideds05 What do you mean by "only above the player" I can use the "Clamp Angle" it works, i place it between the "Get Control Rotation" and "Set Control Rotation" maybe I misunderstand what your trying to do.

  • @marciomolezini239
    @marciomolezini239 3 роки тому

    Tks!!! it's just that i'm looking for!!

  • @reigiputra18
    @reigiputra18 5 років тому

    Thank for the share man! appreciate a lot

  • @Russoxo
    @Russoxo 2 роки тому

    thanks but u should look up the definition of rotation vs revolution.

  • @566ab7
    @566ab7 4 роки тому

    guys why is the camera rotation is moving inverted . how can i fix it ??

    • @juanfranciscotorres9802
      @juanfranciscotorres9802 4 роки тому

      multiply the value on its negative,. so it gets inverted. i guess

    • @Ismaschannel
      @Ismaschannel 4 роки тому

      A little late, but here it is for anyone else with a similar question. You need to add a float multiply node between the mouse Y axis node and the pitch input. Use -1 as your value.

  • @3darchstuffs
    @3darchstuffs 5 років тому +1

    Thank you so much for this tut, my friend. I really needed it for one of my project. let me know where I can donate for you if there is an option to do it.

  • @volkereffinger7144
    @volkereffinger7144 3 роки тому

    Well done Tutorial, that's what I wanted to say :-)

  • @Djonsing
    @Djonsing 2 роки тому

    8:59 UE5 does not have this item (float-float)

    • @isasaurio
      @isasaurio 2 роки тому +1

      ua-cam.com/video/oXbf9A6G3yY/v-deo.html

  • @3dvisualization917
    @3dvisualization917 5 років тому

    Hi;
    I like your tutorial.. very easy..
    Does the first part of this video ( rotation part ) may run on mobile..!!?
    May be you have already made a tutorial how to implement this For Mobile platform..!!
    Thank you

  • @juanfranciscotorres9802
    @juanfranciscotorres9802 4 роки тому

    Amazing tutorial! it just saved me a lot of time. now I'm figuring out why zooming in my project is not working! can someone help me? when I do a simulation the blueprint is receiving the mouse input but the zoom is not working!

    • @samartini1
      @samartini1 4 роки тому

      I had the same problem, it would seem I have solved it, try changing the Spring Arm location, give it an offset on the X and Y - this worked for me.

    • @Ismaschannel
      @Ismaschannel 4 роки тому

      Mine wasn't zooming in/out, either. Turns out I had a dome that was messing everything up. The zoom AND the springarm relation to the camera weren't working properly. No idea why, though. Got rid of the dome, now everything works perfectly.

  • @chidebenosiri4662
    @chidebenosiri4662 4 роки тому

    God bless you, thank you so much

  • @misskj4757
    @misskj4757 5 років тому

    thank you!

  • @thenoticerofthe13
    @thenoticerofthe13 4 роки тому +1

    blueprint* you missed an L there.

  • @ty_teynium
    @ty_teynium 6 років тому

    I just got two questions:
    How far can you zoom in and out? If you zoom out does it stop or go on forever?
    And is there a way to smooth the zooming in and out with the mouse wheel movement?
    Thanks for the tutorials and keep them coming!

    • @GameDevMan
      @GameDevMan  6 років тому +1

      To answer your questions for number one, i'm sure it will just keep zooming out, but you could control this with some venerable. as for number two, you could place a timeline between the the mouse wheel control and the set arm length. then as the end add a "DoOnce" node to stop an infinite loop.

    • @ty_teynium
      @ty_teynium 6 років тому

      @@GameDevMan cool! I think you meant variable? (Venerable?) but still thank you very much!

    • @GameDevMan
      @GameDevMan  6 років тому

      Ty_ teynium haha yeah, sorry I was auto-corrected.

  • @hosseinmarvi6782
    @hosseinmarvi6782 5 років тому

    so useful . tnx a lot :)

  • @yangkangpan1592
    @yangkangpan1592 3 роки тому

    good man

  • @Drahoslav_Lysak
    @Drahoslav_Lysak 5 років тому

    Really nice :)

  • @lordkanesoulreaver
    @lordkanesoulreaver Рік тому

    got a n error This blueprint (self) is not a Controller, therefore ' Target ' must have a connection. and [4406.98] Compile of FlyingPawn1 failed. 1 Fatal Issue(s) 0 Warning(s) [in 98 ms] (/Game/FlyingBP/Blueprints/FlyingPawn1.FlyingPawn1) even tho the code is layed out exatly as you have it

    • @Drunkcaster
      @Drunkcaster Рік тому

      i have the same problem, do you know the solution now?

    • @Drunkcaster
      @Drunkcaster Рік тому +2

      yo dude, idk you need this anymore, i fixed the problem. in the note "get control rotation" you need the little sentence "taget is pawn" under the title. I took the same note but for "taget is controller"