UE4 Camera Rotation Bueprint

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 2024

ความคิดเห็น • 86

  • @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.

  • @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.

  • @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!

  • @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.

  • @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?

  • @dutchs5
    @dutchs5 11 หลายเดือนก่อน

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

  • @In9design
    @In9design 4 ปีที่แล้ว +6

    I want to rotate when mouse click

  • @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.

  • @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?

  • @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!

  • @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?

  • @marcoseliasmep
    @marcoseliasmep ปีที่แล้ว

    Wow that’s so easy, thanks a lot!

  • @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.

  • @danielspagnol1370
    @danielspagnol1370 4 ปีที่แล้ว +3

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

  • @framais
    @framais 5 ปีที่แล้ว

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

  • @tomaszhabza3625
    @tomaszhabza3625 ปีที่แล้ว

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

  • @КОД-ш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?)

  • @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!

  • @williamlacrosse9389
    @williamlacrosse9389 4 ปีที่แล้ว +2

    Dude, you saved my life! Thx

  • @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.

  • @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 :)

  • @Greedisgood-qy2ed
    @Greedisgood-qy2ed 4 ปีที่แล้ว +1

    This video helped me a lot, thank you!

  • @volkereffinger7144
    @volkereffinger7144 3 ปีที่แล้ว

    Well done Demo! Thanks!

  • @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...

  • @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.

  • @tj3603
    @tj3603 2 ปีที่แล้ว

    Thanks, man, this was helpful!

  • @maxmahesh891
    @maxmahesh891 4 ปีที่แล้ว

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

  • @selimsaidi378
    @selimsaidi378 2 ปีที่แล้ว

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

  • @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 11 หลายเดือนก่อน

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

  • @aricarrillo1346
    @aricarrillo1346 5 ปีที่แล้ว

    Very helpful and super easy to follow! THank youuu!

  • @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 ?

  • @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.

  • @reigiputra18
    @reigiputra18 5 ปีที่แล้ว

    Thank for the share man! appreciate a lot

  • @zoeyisaneko151
    @zoeyisaneko151 3 ปีที่แล้ว

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

  • @josephkeller2521
    @josephkeller2521 5 ปีที่แล้ว

    you're a miracle worker, thank you!

  • @Lorecastapendragon
    @Lorecastapendragon 3 ปีที่แล้ว

    excellent tutorial thanks very much

  • @Russoxo
    @Russoxo 2 ปีที่แล้ว

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

  • @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

  • @Djonsing
    @Djonsing 2 ปีที่แล้ว

    How to do left to right?

  • @marciomolezini239
    @marciomolezini239 3 ปีที่แล้ว

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

  • @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.

  • @erox3197
    @erox3197 3 ปีที่แล้ว

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

  • @TensinghJoshua
    @TensinghJoshua 3 ปีที่แล้ว

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

  • @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

  • @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 :-)

  • @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?

  • @victorperezADSK
    @victorperezADSK 3 ปีที่แล้ว

    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

  • @Djonsing
    @Djonsing 2 ปีที่แล้ว

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

    • @isasaurio
      @isasaurio 2 ปีที่แล้ว +1

      th-cam.com/video/oXbf9A6G3yY/w-d-xo.html

  • @misskj4757
    @misskj4757 5 ปีที่แล้ว

    thank you!

  • @chidebenosiri4662
    @chidebenosiri4662 4 ปีที่แล้ว

    God bless you, thank you so much

  • @yangkangpan1592
    @yangkangpan1592 3 ปีที่แล้ว

    good man

  • @Drahoslav_Lysak
    @Drahoslav_Lysak 5 ปีที่แล้ว

    Really nice :)

  • @hosseinmarvi6782
    @hosseinmarvi6782 5 ปีที่แล้ว

    so useful . tnx a lot :)

  • @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.

  • @ty_teynium
    @ty_teynium 5 ปีที่แล้ว

    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  5 ปีที่แล้ว +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 5 ปีที่แล้ว

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

    • @GameDevMan
      @GameDevMan  5 ปีที่แล้ว

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

  • @thenoticerofthe13
    @thenoticerofthe13 4 ปีที่แล้ว +1

    blueprint* you missed an L there.

  • @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"