How would I go about shaking an actor (specifically a skeletal mesh)?

Hey hey,

I’m trying to make a function in my game’s combat component where if an enemy gets damaged, it will shake for a very small amount of time. I’m really not good with math so I’m not sure what I should use. Any help/tips appreciated!

Edit: found an external plugin called Shaker if anyone is interested in this topic.

1 Like

What kind of shaking are we talking about? Maybe you do not need math:


This is just a 1 min example, can be done better, be more nuanced, more random. Does it feel like something worth experimenting with?

3 Likes

That is pretty neat actually! Definitely something worth experimenting for the result I’d like. Let me see if I can adjust it a little! Thanks as always man :slight_smile:

Take a look at camera shake.

I know about CameraShake but that is not what I asked about.

You can also pre-make a bunch of curves and load them into the TL dynamically, for a bit of randomness.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.