top of page
Search

Unreal Engine 5: When Math and Physics Bring Characters to Life | Vatsal

Writer: The Computers and Mathematics Society, SRCC
The Computers and Mathematics Society, SRCC
May 1
4 min read

It appeared more like a puppet with invisible strings than a real person when I first attempted to make a character move in Unreal Engine 5. The entire scene felt weird, the arms moved too rigidly, and the feet slid on the ground. I realized I was missing math, not creativity. Then I discovered something surprising: a hidden blend of physics and math works together perfectly behind every smooth movement, realistic fall, and believable turn in a game. Let me explain… 


THE MATH BEHIND MOTION 


I thought that movement was solely about animation when I first started creating NPCs (non-playable characters). Your character walks after you press a few buttons and drag a few nodes and boom you are done. However, I learned differently from Unreal Engine. Mathematics is the foundation of every movement, from a casual step to a sprint, mathematics is behind each and everything. The x, y, and z axes define the 3D coordinates that NPCs travel through. Vectors are the mathematical tools that tell the engine where to go and how quickly to go. Trigonometry and angles determine how they rotate. Curves and interpolation also smooth out the motion when they stop. Slope equations and vector decomposition are used in the background for even seemingly simple tasks like walking uphill. 

 

 

PHYSICS: GIVING THE WORLD ITS RULES 


While math tells us how they should move, Physics determines how things actually move. Chaos Physics is a built-in system in Unreal Engine 5 that simulates real-world forces in the virtual world. It makes every object in the game have its own weight and resistance by simulating gravity, friction, momentum, and collisions. For instance, when an NPC jumps, Unreal uses gravity to figure out how high they will go and how fast they will fall. The engine measures the force of the impact and changes how they react when they hit a wall. They might bounce off, slide down, or fall to the ground. When I first tried to make an NPC fall naturally, it looked very weird. The character would either fall like a rock or float like a balloon. That's when I realized I was basically tuning gravity by changing the acceleration values until the fall felt real. I learned that physics isn't just about being right; it's also about being believable, like it should look real. Realism in games isn't just about how accurate they are; it's also about how they make you feel, every jump, fall, impact, should pass on a realistic visual. 

 


 

 

TURNING THEORY INTO EXPERIENCE 


The best part about Unreal Engine 5 is how it lets you apply your theoretical knowledge directly into practice. Through Blueprints (its visual scripting system) or C++ code, you can define how characters are moving, how they jump, how they move downhill or uphill and how they interact with the environment, I remember creating a scene where an NPC slowed down after sprinting. It wasn’t just animation; it was mathematics in motion. By changing the rate of deceleration, which is basically lowering velocity over time, I could make the stop feel either sudden or smooth. If I increased friction, the NPC stopped immediately, as if it were on uneven terrain. If I lowered it, they slid slightly, like they were running on wet grass. Based on mathematical reasoning, these minor changes had a deep effect on how the world felt, how the movements changed. It was a learning experience that game development is about understanding the laws of physics, not disregarding them. 



FROM EQUATIONS TO EMOTION 


It's impossible to ignore once you realize that physics and math are subtly controlling Unreal Engine. How does light reflect off of walls? Geometry is that. The echo of footsteps? Wave equations are what that is. Lifelike, fluid motion? Calculus is to be commended for that. Even the decision-making process of NPCs is based on probability and graph theory. What appears to be unadulterated creativity is actually science masquerading as an artist. The appeal of game development is that it involves more than just writing code; it involves creating emotions. Because you forget it's all code when a character moves perfectly, when the shadows fall naturally, and when the world responds as you would expect. You think it's real for a second. 

 

WHAT UNREAL ENGINE TAUGHT ME 


My viewpoint of math and physics has been totally changed by working with Unreal Engine 5. Back in school it all just seemed like some formulas and numbers on a whiteboard. However, it all came to life and practical application within Unreal. They give the impression that gravity is real, light shimmers organically, and characters move like they are living things. I once believed that there was no connection between art and science. I can now see that they are two sides of the same coin. This silent collaboration between imagination and math, creativity and logic, is the source of every realistic NPC, ripple on water, and shifting shadow. 


THE FINAL THOUGHT 


Unreal Engine 5 is more than just a tool for game development; it offers insight into how physics and mathematics subtly influence virtual worlds. It serves as a reminder that logic and creativity go hand in hand and don't exist in separate realms. The next time you see a character move organically or a setting that seems alive, keep in mind that there are innumerable calculations and unseen forces at work behind that magic. The ability of numbers on a screen to evoke emotions is what most astounds me. 

 


 

 

REFERENCES 



~Vatsal

 
 
 

85 Comments


Probodhd Kumar
Aug 11

The puppet analogy is spot on—that rigid arm movement and foot sliding is exactly what happens when you skip the math behind root motion and inverse kinematics. Once I started digging into the physics constraints and blend spaces, everything clicked. I've been using this breakdown to get past that same wall. https://flux3.site

Like

Bui Co
Aug 10

That moment when the feet stop sliding and the math clicks is pure magic—the invisible strings finally snap into place. I've been digging into the same physics-blend rabbit hole lately, and this breakdown is exactly what I needed to push past the puppet phase. https://3dsearch.pro

Like

Perezsusanzrgyr
Perezsusanzrgyr
Aug 08

That moment when the feet slide is the classic wake-up call—once you realize it’s all root motion and vector math, the puppet becomes a person. I've been digging into the same physics-blend rabbit hole lately, and this breakdown of the "invisible strings" is spot on. Check out my breakdown of the animation blueprint setup I've been using. https://framepack-ai.com

Like

Clarksarahkhubz
Clarksarahkhubz
Aug 05

That moment when the feet stop sliding and the "invisible strings" finally snap into place—it’s wild how much root motion and inverse kinematics change the feel. I’ve been digging into the same math lately, and this breakdown is spot on. Check out the blend space curves I’ve been testing. https://seedance-2.dev

Like

Collins Sarah
Aug 04

The "puppet with invisible strings" analogy is spot on—that’s exactly how my first root-motion attempts felt until I started tweaking the blend weights. The way you frame the math as the missing layer really clicks, especially for anyone fighting with foot sliding. I've been digging into the same problem over at https://ai-3d-model-generator.com

Like
bottom of page