Це відео не доступне.
Перепрошуємо.

CAMERA SHAKE in Unity

Поділитися
Вставка
  • Опубліковано 24 лют 2018
  • Get the Complete Unity 3D Game Development Course: www.udemy.com/...
    Spice up your game by adding Camera Shake using Unity!
    Coroutines: docs.unity3d.c...
    EZ Camera Shaker has been deprecated from the Asset Store. Instead check out this open source version: github.com/and...
    Thumbnail image taken from the awesome game Besiege. Check it out here: www.besiege.spiderlinggames.co.uk
    ❤️ Donate: www.paypal.com...
    ····················································································
    ► Join Discord: / discord
    ♥ Subscribe: bit.ly/1kMekJV
    ● Website: brackeys.com/
    ● Facebook: / brackeys
    ● Twitter: / brackeystweet
    ········································­­·······································­·­····
    Edited by the lovely Sofibab.
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. We believe that education should be available for everyone.
    ❤️ Donate: www.paypal.com...
    ········································­­·······································­·­····
    ♪ Baby Plays Electro Games
    teknoaxe.com/cg...
    ♪ "ES_Brooklyn Flava 2 - Mattias Andreasson" by Epidemic Sound (www.epidemicsou...)’

КОМЕНТАРІ • 616

  • @creator_2013
    @creator_2013 6 років тому +2002

    *How to become a good Unity developer:*
    Step 1 - Programm everything yourself
    Step 2 - Just delete your code and use something from the asset store

    • @elektra81516
      @elektra81516 6 років тому +295

      As much of a joke that this is, programming things yourself gives you more flexability and control as well as a sense of pride and acomplishment

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

      lol

    • @supatroopa5097
      @supatroopa5097 6 років тому +19

      too real

    • @gamedesignwithmichael
      @gamedesignwithmichael 6 років тому +7

      "good" haha

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

      He gave us both the options bitch.

  • @UnidayStudio
    @UnidayStudio 6 років тому +452

    8:49 best sound effect ever

    • @youngtozen4168
      @youngtozen4168 6 років тому +5

      fart?

    • @VeNoM0619
      @VeNoM0619 6 років тому +18

      I was not prepared for that, and bust out laughing. That was just genuine comedy.

    • @guldberg75
      @guldberg75 6 років тому +2

      Hahaha, i was expecting a cool effect for real..

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

      Where can I buy this asset? :D

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

      Uniday Studio nn

  • @Natalatalei
    @Natalatalei 6 років тому +314

    Can we get a tutorial on how to do that sound effect you used at the end, seems advanced.

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

      yes i hope he do a tutorial

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

      @@-no9039 lmao

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

      @@zlayer2881 sorry i don't understand

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

      I think you may just download an effect and to play it on click you may make a script in c#

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

      @@-no9039 the end sound was spit lola

  • @leyamst
    @leyamst 6 років тому +232

    I was literally scripting my guns in my game and this video gets uploaded right when I needed it.

  • @Lugmillord
    @Lugmillord 6 років тому +52

    Recommendation: Instead of Random.Range, try some noise functions. They make the shake less erratic and a bit more realistic. There's a great GDC video about that.

  • @Dorbellprod
    @Dorbellprod 4 роки тому +330

    "Go back into unity, there should be no errors"
    My Console: ❗️❗️❗️❗️❗️❗️❗️
    As of October 2, 2021, I officially no longer like this comment.

  • @smokinjoeee
    @smokinjoeee 6 років тому +55

    pro tip: at the beginning of every Brackeys video, freeze it; you'll get a pretty good look at what he looks like high

    • @chrisc7265
      @chrisc7265 6 років тому +5

      the real challenge is trying to figure out what he looks like not high

  • @heatblayze
    @heatblayze 6 років тому +213

    I already know 99% of the stuff you publish, but for some reason I just love watching your videos

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

      Same here!

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

      I also know most of it, but sometimes, his videos give me a better and easier way to optimize my codes. No knowledge is lost ;)

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

      Same!

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

      Where have you learn ?

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

      Me neither

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

    The fact that this is one of the only and few camera effects that don't get broken with HDRP deserves an extra comment after 2 years

  • @WyattLee
    @WyattLee 6 років тому +12

    I just want to say thank you... You have helped me out in my programming experience, and I couldn't do any of it without your easy-to-learn explanations. I hope someday to be able to make games as good as you...

  • @5fercho5
    @5fercho5 6 років тому +19

    Brackeys: "Now we need some sound effects"
    Me: Wow! what a complete tutorial!!
    Brackeys: *Mouth sounds*

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

    I like that you show both how to start writing your own shake, and then also shows a good assets - but unlike most you also import the asset and shows how to actually use it.

  • @ipadize
    @ipadize 4 роки тому +9

    when you made that soundeffect, i felt that

  • @sykoo
    @sykoo 6 років тому +322

    Heeeeeeeey, I started *shaking* because of that pun! Am I part of the joke-class now? 👏

  • @sparrowhawk81
    @sparrowhawk81 6 років тому +4

    DOTween is great for this kind of stuff. Even the free version has some really cool extensions for camera shake, punching out the scale of things to make them "pop". You can "tween" any value you want pretty easily too.

  • @icades5157
    @icades5157 6 років тому +5

    8:50 the best sound effect I've ever heard. Gotta download it.

  • @stannisbarracuda5693
    @stannisbarracuda5693 6 років тому +36

    me as a beginner programmer still watchin his class and arrays videos this looks like magic to me

    • @drowsy5384
      @drowsy5384 6 років тому +4

      stannis Barracuda You really shouldn't be watching any of this without base desirably C based language knowledge

    • @Buggzys
      @Buggzys 6 років тому +12

      Green Shadow dont listen to this guy, people all over say things like this but you learn so much from these types of videos that you can apply later on

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

      Yeah, totally, perhaps you don't learn quite as much as if you would understand basic stuff, but there is still something to learn here. It's cool to see what you could be able to do and get more familiar with the code syntax. However, it's not good either to just watch these videos if you don't understand the basics.

    • @Buggzys
      @Buggzys 6 років тому +5

      Kaf3in0 B Yeah that is true, I sounded kind of rude responding to that other guy but you should never be discouraged to watch a video that you dont fully understand. Videos like these used to motivate me to learn and practice more to achieve this type of success.

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

      it'll grow on you. Keep learning.

  • @ThylineTheGay
    @ThylineTheGay 3 роки тому +3

    0:46 every mobile game "dev" be like: "yes i need that tutorial, no not the game development part, the ad part"

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

    btw the cute way to do this is to put the starting of the coroutine inside of a different function inside of your camera shake object, and just calling that function every time so you dont have to use weird different syntax.

  • @YoutubeChannel-oq6ss
    @YoutubeChannel-oq6ss 4 роки тому +4

    Hello, if for some reason your code is not working, rewrite it like this... this works for me
    public class CameraShake : MonoBehaviour
    {
    // Set up data
    bool shake = false;
    float duration;
    float magnitude;
    Vector3 originalPos;
    float elapsed;
    // Shake the screen
    public IEnumerator Shake (float duration, float magnitude)
    {
    // Setup data for camera to be shaked
    shake = true;
    this.duration = duration;
    this.magnitude = magnitude;
    yield return 0;
    }
    void Update()
    {
    // Shake the camera
    if (shake)
    {
    if (elapsed == 0.0f)
    {
    Vector3 originalPos = transform.localPosition; // Save the original position
    }
    // Every frame, offset the camera's x and y position for duration seconds for duration seconds
    if (elapsed < duration)
    {
    float x = Random.Range(-1, 1f) * magnitude;
    float y = Random.Range(-1, 1f) * magnitude;
    transform.localPosition = new Vector3(x, y, originalPos.z);
    elapsed += Time.deltaTime;
    }
    else // Reset data
    {
    transform.localPosition = Vector3.zero;
    shake = false;
    elapsed = 0.0f;
    }
    }
    }
    }

  • @smartandfunny6140
    @smartandfunny6140 6 років тому +33

    can i use your sound effect 8:50 for my game ?

    • @Brackeys
      @Brackeys  6 років тому +36

      Haha, sure! :D

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

      @@Brackeys YEEEET

    • @SagorHossen2020
      @SagorHossen2020 5 років тому +4

      i wanna use this sound in my video as Fart's sound instead of explosion

  • @felixp535
    @felixp535 6 років тому +55

    Where can I download that amazing sound effect at the end? Link please

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

    Me: trying to relax listening to the sounds of the forest
    *puts on brackeys video instead

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

      I have found this comment by sorting all of these comments by the Newest First. You have gotten yourself the award of, "The Newest Comment as of 7-24-2021"

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

      @@yourfellowgamer487 Thank you, i guess.

  • @Phoenix-0455
    @Phoenix-0455 4 роки тому +6

    It appears that the package EZ Camera Shake is not in the asset store anymore.

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

      Look in the description, there is a GitHub Link to it

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

    For anyone whose script is not working nowadays, this works for me
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CamShake : MonoBehaviour
    {
    public IEnumerator Shake(float duration, float magnitude)
    {
    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration)
    {
    float x =Random.Range(-1f, 1f) * magnitude;
    float y =Random.Range(-1f, 1f) * magnitude;
    transform.localPosition = new Vector2(originalPos.x + x, originalPos.y + y);
    elapsed += Time.deltaTime;
    yield return null;

    }
    transform.localPosition = originalPos;
    }
    }

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

      @Sicko no problem! Glad I could help

  • @bl4ckscor3
    @bl4ckscor3 6 років тому +3

    That sound effect had me laughing for a bit :D

  • @NickFarrow
    @NickFarrow 5 років тому +8

    If anyone is having an issue like me were the camera went a little too wild I've modified Brackeys script a bit.
    public IEnumerator Shake (float duration, float magnitude){

    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration) {
    float x = Random.Range(-1f,1f) * magnitude;
    float y = Random.Range(-1f,1f) * magnitude;
    float z = Random.Range(-1f,1f) * magnitude;
    //transform.localPosition = new Vector3 (x, y, z);
    transform.localPosition = new Vector3 (originalPos.x + x, originalPos.y + y, originalPos.z + z);
    elapsed += Time.deltaTime;
    yield return null;
    }
    transform.localPosition = originalPos;

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

    The asset store camera shake is fine IF you don't ever reset your scene because it fucks the camera

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

    Agreed with keeping this self-programmed instead of using an asset, as it's just a few lines of understandable code. The asset only adds dependency to your project.
    Also since you have a 3D scene and perspective cam, you rather want to randomize camera.rotation than camera.position, because this will effectively pan the whole screen like a "flat image". Randomizing only the position pans objects close to camera much more than farther objects - unless you really want that effect.

  • @janimations4652
    @janimations4652 2 роки тому +3

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CameraShake : MonoBehaviour
    {
    public IEnumerator Shake (float duration, float magnitude)
    {
    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration)
    {
    float x = Random.Range(-1f, 1f) * magnitude;
    float y = Random.Range(-1f, 1f) * magnitude;
    transform.localPosition = new Vector3(x, y, originalPos.z);
    elapsed += Time.deltaTime;
    yield return null;
    }
    transform.localPosition = originalPos;
    }
    }

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

    I love you. I'm an Egyptian programmer . I learned many at unity because of you

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

    And this is guys how the Quarantine started all because of my man Big Brack.

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

    I miss you, Brackeys ! I hope you and your team are doing well

  • @2dinunity10
    @2dinunity10 6 років тому +2

    This is sweet and simple, and also really smooth (this goes under the camera game object)
    void OnPreRender(){
    if (sinceShakeTime > 0.0f) {
    lastPos = Random.insideUnitCircle * shakeIntensity;
    transform.localPosition = transform.localPosition + lastPos;
    void OnPostRender(){
    if (sinceShakeTime > 0.0f) {
    transform.localPosition = transform.localPosition - lastPos;
    sinceShakeTime -= Time.deltaTime;

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

    For those who are struggleing to implement this while camera moves:
    Dont save cameras original position, and instead just return to vector3.zero. That is if your camera is a child to some empty gameobject, and you have camera movement scr on that empty.

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

      Thank you

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

      @@GameDevJosh No problem m8

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

      @Sicko
      Put camera inside an emptyObject
      If you have cameraScript (Responsible for moving camera) make it so this script moves that emptyObject
      Then if camera shakes it is inside an empty and you dont have to worry about position change
      hope that was clear :)
      if not I may do some quick tutorial on my channel

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

    Another tool worth looking at, if you want more control over your camera shake, is Perlin noise. I highly suggest any budding developer to look up camera shaking with Perlin noise, as it has many other applications (procedural world generation, drunken walking, etc).

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

    8:52 "PPPPFFFFFFF!" Loved the sound effect!

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

    Camera Shaker script prevents me from zooming (changing z-value in camera position). Weird thing is that I can't access and disable the script by FindObjectOfType or by make it a public variable in the inspector. It's just not there. Anyone knows a solution?

  • @hughmarch5909
    @hughmarch5909 6 років тому +2

    Hey Brackeys, instead of parenting the camera, you could also set the local position to new Vector3(x + OriginalPos.x, y + OriginalPos.y, OriginalPos.z)

    • @theteeppi
      @theteeppi 3 місяці тому

      Bruh, thank you so much, that saved me such a hassle. comment was 6 years ago, but still helping out here xd

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

    Yo your sound effects are so good you should upload them on the Unity Store

  • @dutch8700
    @dutch8700 6 років тому +2

    Please do a tutorial where you give us a project that you made but there are a few problems and you have to go fix them.
    Thanks in advance dude
    Also congrats on 400k subs

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

    The sound effect was awesome! 8:49

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

    Dude nice! This is one of the first times I've seen a practical use of a coroutine. I'm sure there are tons though. Thanks!

  • @EinerMuss
    @EinerMuss 5 років тому +11

    Asset Store Page of EZ Camera Shake: "Unfortunately, EZ Camera Shake is no longer available.
    This package has been deprecated from the Asset Store. "

    • @tong5622
      @tong5622 5 років тому +6

      It is open-sourcing on GitHub though ;)

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

      Yes, It's open sourced and here is the link github.com/andersonaddo/EZ-Camera-Shake-Unity

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

    for people that its not working for you ( EZ camera shake ) its not working with cinemachine , this is sad so yea

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

    That final sound effect Lol ! you're getting better at telling jokes ,,, Thanks man you and your team are awesome !

  • @Mr.Coldfire421
    @Mr.Coldfire421 6 років тому

    The very awesome part you did is the sound effects. I didn't see that coming.

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

    Your thumbmail looks like the game Besiege!

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

      That's because it's literally a screenshot from the trailer.

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

    Oh man 8:49 im ready for that sound effects tutorial.
    Great tutorial, was looking for a camera shake one :D

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

    Using Random.insideUnitCircle (returns Vector2 with a random x and y with the value from 0 to 1) instead of getting random value for both x and y is simpler in this case.
    So simply:
    Vector2 shake = Random.insideUnitCircle * magnitude;
    transform.localPosition = new Vector3(shake.x, shake.y, originalPos.z);

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

    The thumbnail is a Besiege screenshot xD (good job DAN)

  • @pablovm4073
    @pablovm4073 6 років тому +18

    I only give you a like because of that awesome Sound Effect :)

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

    Haha, that sound effect made my day! :D

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

    5/5 on the explosion sound at the end! I'm going to use that for explosions in my game now! "Pbfffff"!! Great video like always Brackey's!!

  • @androvictrayo-dy7eh
    @androvictrayo-dy7eh 8 місяців тому

    This is a very epic tutorial, now I can create camera shake easily 👍👍👍

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

    I can’t explain how much you helped me out

  • @thet0ast3r
    @thet0ast3r 3 роки тому +3

    this doesnt work. cannot attach the camera to the script where the CameraShake object is in.

    • @vikini13
      @vikini13 Місяць тому +2

      Did you even make the script. If you did then did you mark the camera object in the script as public. If that doesn't work use [SerializedField]. It should be something like public Camera cam; Or you can do: [SerializedField] Camera cam

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

    If you are into math, you could try making the shake yourself using cos(f*t)*k^-t as a base. k marks how fast the shake will fade out and f frequency

  • @TrentSterling
    @TrentSterling 6 років тому +4

    This camera shake varies depending on your frame rate, and you can only call it once at a time. Guess the asset'll do the job. :-\

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

      he multiplied it with Time.deltaTime , so no it doesnt depend on your framerate.

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

    We're gonna miss you terribly.

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

    sweet with this plus your menu videos I can make a menu to disable camera shake. That's my favorite setting.

  • @Chocoletter
    @Chocoletter Рік тому +1

    i can not drag my camera into the camera shake

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

    6:54 when you create something and present it to your friends

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

    The EZ CameraShake is awesome! Thanks for the video.

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

    Omg I died when you pronounce Duy Nguyen hahahahaha

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

    I am making a 2d game and want to use this but whenever it shakes the position of camera gets all messed up. How do I fix this?

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

    Well, i am learning so much.

  • @anandkrishna590
    @anandkrishna590 6 років тому +2

    Dat sound effect dough

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

    Awesome camera shake tutorial! 👍🤓🧡

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

    8:50 SFX Approved by the best Minecraft Slime in the world

  • @AngryMedic
    @AngryMedic 6 років тому +2

    Hey brackeys!
    Can you show us how to make the progressive lightmapper more “better and improved”?

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

    HAHAHA Best explosion sound effect ever!

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

    Thanks for the tutorial. All of your tutorials help me a lot!

  • @aa-ly9on
    @aa-ly9on 6 років тому +3

    Why multiply rand(-1, 1) and not just rand(-magnitude, magnitude)? Just curious.

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

      Then we don't need to reference the magnitude variable twice, I guess

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

    That sound affect doe. seems really advanced

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

    You can also use DoTween camera shake. That's the same thing but more comes with it.

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

    bold of you to use a while loop in unity

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

    how he tries to cover up his jokes is 10x funny then any jokes🤣

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

    *How can i make camera shaker with trigger? For example 15 seconds later trigger will start and camera will shake 2 seconds*

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

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class CamShake : MonoBehaviour
    {
    public IEnumerator Shake (float duration, float magnitude)
    {
    Vector3 originalPos = transform.localPosition;
    float elapsed = 0.0f;
    while (elapsed < duration)
    {
    float x = Random.Range(-1f, 1f) * magnitude;
    float y = Random.Range(-1f, 1f) * magnitude;
    transform.localPosition = new Vector3(x, y, originalPos.z);
    elapsed += Time.deltaTime;
    yield return null;
    }
    transform.localPosition = originalPos;
    }
    }

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

    he is always smiling!

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

    I am not able to drag camera like that ???please help

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

    Great video. I found one problem. Multiple calls to the shake coroutine before it finishes will set originalPos to the current offset position during the interruption (You'll see this when quickly starting the coroutine over and over again before it finishes). You can fix this by setting the originalPos one time outside as a private field or simply ending each shake with Vector3.zero.

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

    CAN STOP SMILEING LIKE A MANIAC FFS?

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

    That's what I needed, thanks Brackeys!

  • @kirov_airship
    @kirov_airship 4 роки тому +5

    3:18
    Another way to avoid camera snapping instead of adding an empty game object in the Main camera:
    Simply change transform.localPosition = new Vector3(x, y, originalPos.z);
    to transform.localPosition += new Vector3(x, y, originalPos.z);

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

    Thank you

  • @MrMakosi
    @MrMakosi 6 років тому +2

    So i followed the tutorials and created the example cube game and it works great! I have now added camera shake at point of collision and it also works great however when a level restarts the camera does not follow player anymore.Anyone has similar problem and found out a solution?

  • @x-lab
    @x-lab 6 років тому +1

    Random position can be picked with the help of Random.insideUnitCircle.

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

    Damn brackeys, you should start a tutorial on Foley! That was a brilliant explosion!!!

  • @khaledxyz
    @khaledxyz 6 років тому +40

    Rocket league has the best camera shake

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

      Khàléd HàllOuà totally agree

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

      That's because they eat their Wheaties and watch their Brackey's :P

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

      Ambient Relaxation lol :p

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

      Bro force

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

    I suscribed in the moment that i heard that amazing sound effect

  • @YoutubeChannel-oq6ss
    @YoutubeChannel-oq6ss 4 роки тому

    My camera shake does not work correctly. It does not reset the cameras position and everything happens in one frame. Even better, Ez camera shake is no longer available. PLS HELP!

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

    For some reason I can only get this to work if the MainCamera is not in the CameraHolder

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

    You did a good job, really really thanks for providing such an amazing tutorial.

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

    Really need a tutorial on inAppPurchases. Unity IAP or Unity Ads or AdMob. I don't know how to set it up to monetize my game. Thanks Brackeys!!

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

    Like for the sound fx

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

    this video helped me with an unrelated cause lol, nice vid!

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

    I applied this effect when a ball touches a wall in a 2D project and after the camera shake effect the ball does no longer collide with the wall and can pass right through it. Any idea how to fix?

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

      If the rigidbody isn't already set, change the 'collision detection' from discrete to any 'continuous', this will mean it will always be looking for colliders every frame unlike discrete. If you've already done this then i don't what else to tell u :(

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

      @@tssper3488 Thanks for the response! I have already tried that but still the same :(

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

    Nice sound 8:50