Physics Based Tutorial Series

I’m making a series of tutorials on the creation of physics based assets.

I have a playlist dedicated to this:
]()

Here’s video example:

If you have ideas for what to do next, please leave them below.

To stay up to date with new videos on game development, subscribe to our Youtube channel.

Thanks for sharing! :slight_smile:

Thanks for watching!

There’s a new video out in this series. It shows how to make a trebuchet.

Motorcycle please!

That’s a very good idea. It will be challenging, but I think it’s doable.
I’ll see what I can do.

Nice tutorials! I have 2 suggestions, a ballista and a battering ram. I know they can be animated so we don’t need to use physics, but I think the battering ram for example would be quite nice workign with physics, against a door with physics too. Anyway, hope you continue to do content like this, good luck.

Thanks! I thought about making a ballista, I’ll put it on the list.
Ah, yeah, a battering ram should be a lot of fun, and actually fairly easy to implement. Breaking down a door with that should be satisfying.
I’m not planning to stop anytime soon, physics constraints are a ton of fun!

In the mean time, here’s the newest video in the series:

Hey, these are pretty cool! If you are looking for inspiration, my physics/mechanism itch is often scratched with this amazing dude’s videos: https://www.youtube.com/user/thang010146/videos

Thanks! That’s a very nice channel, with lots of ideas.

  1. To be honest, I don’t know much about multiplayer. I thought that since there are almost no blueprints involved, I just check a checkbox and it’s done, but I’m thinking it’s not that simple. Gaining the ability to rewind definitely makes this attractive. I’ll see what I can do. Suggestions start piling up. :slight_smile:

  2. You know, I was actually thinking of making one of those. It should be fun to make. I’ll put it on the list.

Thanks!

I’m still wondering if franktech was trolling you with 1, haha. Rama has done some work with multiplayer physics- I don’t have a link to his thready handy… also not sure if more recent changes made network-based physics more approachable and “healthy”. Historically though, networked physics is a tough cookie.

I whipped up a proof-of-concept rewind system a year or so ago, mainly just to show someone something visually versus what I was spitballing off my head. All I did was store transformations in an array, then walked backwards through that array for the rewind. Again, it was just PoC, and was dirty and inefficient, but it worked. Pretty sure others have utilized the same method for their experiments. A recent version (not sure if it was 4.19 or 4.20) introduced the replay system, which I’ve yet to tinker with, but that might expose an alternative way of handling rewinds!

[edit]

Manged to find an old video of that rewind system. It’s unlisted, so not sure if it’s accessible. Let me know if there are issues viewing it.

It’s possible :slight_smile:

I’m not sure it’s worth the effort of making a sepparate rewind system. It would basically come down to the same thing as the replicate function and live replay that’s already present.
I think it should work to simply check the “Replicate” checkboxes. I don’t have the time right now to look into it. It will have to wait for later.

Here’s the new video in the series. How to grab an object using a Physics Constraint as opposed to Physics Handle.
It has the advantage of not having to update the location each frame and an easier configuration.

Haha, totally agree franktech. Though, I was referring to Rama’s networked physics solution. I wasn’t aware he did a rewind system, and also not aware of TheJamsh’s solution. I’ll have to hunt those down!

It would certainly be nice to see the networked physics “cookie” cracked once-and-for-all, I think we are getting closer. Whether it’s Epic or one of us in the community, I have hope that it’s on the horizon. As far as rewind, I think it’s 100% possible right now. Just not a simple 2-click sort of thing. There are too many use-cases, and thus too many solutions for a one-size-fits all. But when it comes to transformations/physics, it’s doable. With a little love, it can even be quite robust and performance friendly. As I’ve shown, one could whip something up in a couple hours. And that was pure blueprint.

I also agree about the same tutorials being regurgitated. I don’t mind when a creator has a different solution to the same problem, but I am seeing more and more direct copies, which is a tad bit annoying. That being said- I think what Lusiogenic is doing is pretty original, and done well to boot. I foresee many people being referred to his tutorials down the road. At this point in the engine’s life, I think it’s smart and much more helpful to specialize in a niche, if one is going to do tutorials. It’s a bit late in the game to come to the table with tutorials that cover everything, without broad strokes and failing to really bring anything “meaty”.

Well, I’ve tried my “brilliant” strategy of just flipping the replicate switch, and it kind of works. I’ve managed to make the Wheel with piston work for replay.
But there’s a problem with the FirstPersonCharacter camera. It doesn’t replicate as it should. It’s jerky at best.
Because I have the grab mechanics tied to the camera, it affects how I move things around.

Apparently, I’m not the first to run into this problem, this post suggest that I should update the position and rotation manually:
https://forums.unrealengine.com/development-discussion/c-gameplay-programming/25860-first-person-camera-movement-replication-problem?p=433221#post433221

I’ll try that and see how it goes.
Something to note here is that from what I can observe, the replication only applies when the objects are interacting with each other. If they are falling, for example, and they are not affected by other objects, they will just calculate the position on their client. This is good because it offers fluidity, but it’s bad because the objects might get out of sync.

I’ll have to test using 2 clients at the same time and see how it works.

Here’s the latest video in this series:

How to make a Wheel with Suspension for Vehicle

Awesome- that’s a good one. Your channel is growing, hehe. Soon you’re gonna have a Play Button coming in the mail :smiley:

Thanks!
It’s working well so far, but I’m not getting my hopes up yet.
For now, I’ve got the “Clay/Dirt Play Button” for 100 subs :smiley:

New video in the series:

How to make a Rope Swing