How Nintendo Designed Tears of the Kingdom Physics
In this article
Nintendo’s Tears of the Kingdom physics system lets you build vehicles, launch Link across Hyrule, and solve puzzles by combining objects with Ultrahand, Fuse, and Recall. The core design principle is simple: every object has mass, friction, and a collision shape, and the game simulates them in real time. This guide breaks down the step-by-step process Nintendo likely used, based on official developer presentations and interviews, so you can understand and even apply these concepts to your own game projects.
What You'll Need
- Basic understanding of game engines (e.g., Unity, Unreal, or a custom engine)
- Familiarity with rigidbody physics and collision detection
- Access to a physics engine that supports joint constraints (like PhysX or Havok)
- Patience for iteration and playtesting
Step-by-Step
- Start with a simple rigidbody system. Every object that can be moved or affected by gravity gets a rigidbody component with mass, drag, and angular drag. In Tears of the Kingdom, almost every object—from a rock to a wooden plank—has these properties. Set the physics tick rate to a fixed timestep (e.g., 60 Hz) to keep simulation stable.
- Define collision shapes manually. Instead of using complex mesh colliders for everything, use primitive shapes (boxes, spheres, capsules) for most objects. This reduces computational cost and makes interactions predictable. For irregular objects like tree trunks, use a compound of multiple primitives.
- Implement a grab-and-attach mechanic (Ultrahand). When the player grabs an object, you need to create a temporary constraint that holds the object at a fixed offset from the player’s hand. In the engine, this is a point-to-point constraint with a high stiffness. When the player releases, the constraint is removed and the object falls naturally.
- Add a “fuse” system for combining objects. When the player attaches two objects (e.g., a stick and a rock), you create a rigid joint between them. The joint must allow rotation on one axis (like a hinge) or be fully fixed depending on the combination. For example, fusing a rocket to a shield creates a fixed joint, while fusing a wheel to a cart uses a motorized hinge.
- Implement Recall for time reversal. This requires storing the position and rotation of every object at each physics tick for a short window (e.g., 10 seconds). When Recall is activated, you replay those stored states in reverse, essentially rewinding the physics simulation. To avoid memory issues, only store data for objects that have moved recently.
- Balance friction and bounce. Each material (wood, stone, metal) has specific friction and restitution (bounciness) values. Wood slides easily on stone, while stone on stone has high friction. Tune these values in a central material table so designers can tweak them without touching code.
- Optimize with sleeping and culling. Objects that haven’t moved for a few seconds can “sleep” (stop simulating) to save CPU. When the player interacts with a sleeping object, wake it up. Also, disable physics for objects far from the player, but keep them in a static state so they don’t disappear.
- Test with player-built contraptions. The real challenge is ensuring that player creations (like a fan-powered raft) behave consistently. Run automated stress tests that build random contraptions and check for instability. Adjust joint limits and solver iterations until they hold together under typical gameplay.
- Add a “glue” system for temporary connections. In Tears of the Kingdom, Ultrahand lets you stick objects together with a blue glue that can be broken with enough force. Implement this as a breakable joint with a threshold force. When the force exceeds the threshold, the joint breaks and the objects separate.
- Iterate with playtesters. Nintendo’s team spent months tweaking the physics feel. Watch how players build and break things. Adjust object weights, joint stiffness, and friction until it feels intuitive—not too floaty, not too stiff.
Common Mistakes
- Using high-poly collision meshes. This slows down the simulation and causes jittery interactions. Stick to simple shapes.
- Not fixing the timestep. If the physics update rate varies, objects will behave differently on different frames, leading to erratic motion.
- Ignoring joint solver iterations. Too few iterations cause joints to stretch or break under load. Increase iterations for stable connections, but beware of performance cost.
- Forgetting to cap object velocity. If an object falls from a great height, it can tunnel through the ground. Set a maximum velocity and enable continuous collision detection for fast-moving objects.
- Making all objects equally heavy. Weight matters for puzzle design. A heavy stone should not be as easy to lift as a wooden plank. Assign realistic masses based on material.
Tips
- Use a material-based physics system. Define all physical properties (friction, bounce, density) in a data-driven way so designers can tweak without code.
- Implement a “grab” preview. Show a ghost outline of the object when the player aims at it, so they know it’s grabbable. This reduces confusion.
- Allow objects to be stacked. In Tears of the Kingdom, you can stack boxes. Ensure your collision shapes align well to avoid gaps that cause instability.
- Test on low-end hardware. Physics can be CPU-heavy. Profile on the weakest target platform early to avoid surprises.
- Add a “reset” button for testing. During development, let testers instantly reset the scene to avoid rebuilding contraptions repeatedly.
Troubleshooting
If objects jitter or shake: Reduce the solver iterations or lower the joint stiffness. Jitter often comes from too high stiffness combined with low solver quality.
If objects fall through the ground: Increase the collision margin or enable continuous collision detection for fast objects. Also check that the ground has a proper collider.
If player-built contraptions explode on load: This happens when joints are created while objects are overlapping. On load, ensure all objects are separated by a small margin before creating joints.
If Recall doesn’t work for moving platforms: Make sure you’re recording the position and rotation of the platform itself, not just its child objects. Also, store data at the same timestep as the physics update.
If performance drops when many objects are active: Reduce the number of active physics objects by increasing the sleep threshold. Also, consider using a spatial hash to only simulate objects near the player.
Frequently Asked Questions
How does Ultrahand decide which objects can be grabbed?
Any object with a rigidbody and a collider that is not too heavy (under a mass threshold) can be grabbed. In the game, some objects are too heavy to lift, but you can still fuse them to other things.
Why do some fused objects break apart easily?
The breakable joint has a force threshold. If the force applied (from gravity, collision, or explosions) exceeds that threshold, the joint breaks. This is intentional to allow creative destruction.
Can I implement the same physics in Unity or Unreal?
Yes, both engines have rigidbody and joint systems that can replicate this. Use ConfigurableJoint in Unity or PhysicsConstraintComponent in Unreal to create similar mechanics.
How does Recall store so much data without lag?
Nintendo likely uses a ring buffer that stores only the last few seconds of data, and only for objects that have moved. They also compress the data (e.g., using half-precision floats) to reduce memory.
Is the physics deterministic across players?
No, physics is not deterministic because floating-point calculations can vary slightly between platforms. That’s why online multiplayer in Tears of the Kingdom is not physics-synced; it’s just local.
What’s the hardest part of designing this system?
Balancing stability with creativity. If everything is too rigid, builds feel lifeless; if too loose, they fall apart. Nintendo spent years tuning this balance, so expect to iterate a lot.