GameDev

Why are doors so difficult to create in games and how do developers solve it?

Why are doors so difficult to create in games and how do developers solve it?

Learn: The Profession of Game Designer from Scratch to PRO

Learn More

In the development of 3D games, there are many mechanics that can cause difficulties for developers. One of the most challenging aspects is implementing doors. At first glance, this seems like a simple task: a doorway, the door itself, and a door handle are all familiar and understandable elements. However, in the context of gameplay, doors present a real challenge. Their functionality must be carefully thought out to ensure a smooth and intuitive experience for players. This requires a careful approach to interaction, as well as physics and animation. Developers must consider numerous factors, such as opening and closing doors, collisions with characters and objects, and various interaction mechanics. Thus, despite their apparent simplicity, implementing doors in a 3D game requires significant effort and creativity. Video game development is a complex process, and developing even simple environmental elements like doors can be a real challenge. This is especially true for swing doors, which require careful design. Despite their apparent simplicity, implementing these objects can take a significant amount of time and effort. In this article, we'll explore the main challenges developers face when creating swing doors in virtual spaces, and why the process can take days of coding and testing. Unlike doors that slide into walls, ceilings, or floors, swing doors have unique requirements for animation and player interaction.

What's Wrong with Game Doors

In 3D games, the laws of physics that operate in the real world don't apply. Objects presented in the game have no physical mass and can intersect with each other. Even the use of hitboxes, which serve to define the boundaries of objects and check for collisions, doesn't always solve the problem of interaction between them. This creates unique opportunities for gameplay, allowing developers to implement various mechanics and effects that would be impossible to reproduce in reality.

When a door opens, if a player or non-player character is in its path, various scenarios are possible. Ideally, the door should either stop or bounce back upon collision. This behavior must be implemented in the game code. Developers should consider the door's physics to ensure it functions realistically, or find alternative solutions for managing character interactions. This will create a more immersive and believable gaming experience, which is an important aspect of modern video game development.

Screenshot: Half-Life game / Valve

The issue with doors is well demonstrated in the game Half-Life. In this game, light doors returned to their original position if they were opened, while heavy doors could damage the character in their path. This is implemented using the Blocking Damage parameter. Interestingly, in some situations, a regular door could even kill the main character, Freeman.

The Blocking Damage parameter is related to a well-known bug that is actively exploited by speedrunners. At the end of the chapter "Surface Tension", there are two doors that the security guard Barney must open. Interestingly, the Blocking Damage parameter in these doors is set to "-1" instead of "1". This means that instead of decreasing health (health - 1), it increases (health - (-1)). Thus, two minuses create a plus. If the player's health is full at the time this bug is activated, then instead of losing health, the armor parameter increases. This phenomenon can be seen in the corresponding video.

How does this process work? The system is based on a combination of modern technologies and algorithms, which ensures the efficient execution of tasks. The focus is on automation, which simplifies the user experience with the platform. Each stage is carefully designed to ensure high performance and reliability. Users can easily customize the settings, which allows them to tailor the service to individual needs. This approach not only optimizes workflows but also increases overall customer satisfaction.

In the game Half-Life, Gordon's health stat uses an integer data type (int32), which has a maximum value of 2,147,483,647. The player can achieve this record by using a door in the game. However, to achieve this value, the character would need to be trapped in a door for 576 hours, which is equivalent to 24 days. This unusual way to reach maximum health has become an intriguing fact for fans of the game and highlights the unique mechanics of Half-Life.

It is unclear why the game developers made the door a healing door. According to one theory, during early tests, Barney would often get stuck in the door and die. Because he plays an important role in the plot, the developers decided to change the door's damage value from "1" to "-1." This solution prevented Barney from dying. However, it would have been possible to simply set the damage value to "0," which would also not have caused his death but would not have restored the character's health. Perhaps the developers simply overlooked this detail when preparing the game for release.

This is just one example of the developers' attempts to solve the problem of objects getting stuck in doors and the consequences it leads to. In reality, the issue is much more complex and multifaceted. Game designer Liz England, who has worked on projects such as Watch Dogs: Legion, Sunset Overdrive, and Resistance 3, formulated the essence of this problem most accurately. English-language resources dedicated to game development often cite her analysis of the Door Problem. Liz England humorously emphasizes that creating even a simple game object can require the participation of numerous specialists from various fields of the gaming industry, including AI programmers, environment artists, interface designers, and visual effects specialists. Ultimately, however, the decision on how a door will function in a game should rest with only one expert. This underscores the complexity and diversity of the game development process, where every element requires careful attention and professionalism. The door problem is a classic challenge for designers. Many are faced with the need to solve it, and it is designers who take on this responsibility. Developing an effective and aesthetically pleasing door design requires careful consideration and creative thinking. Doors play an important role in interior design; they not only provide privacy but also shape the overall feel of a space. Therefore, designers must consider functionality, style, and harmony with the surrounding environment to create the perfect solution for each door.

Liz England is a professional game designer known for her unique approaches to creating game worlds. In her work, she combines creativity and technical skills, which allows her to develop engaging and innovative game mechanics. Liz actively researches new technologies and trends in the gaming industry, which helps her stay at the forefront of a rapidly evolving landscape. Her projects are distinguished by high quality and originality, which attracts the attention of both players and critics. Liz England continues to inspire the next generation of game designers by sharing her experience and knowledge of video game development.

A game designer faces many questions, more than 20, that must be answered during the game development process. These questions cover key aspects of gameplay, mechanics, storytelling, and user interaction. Correctly answering them helps create an engaging and high-quality product that meets player expectations. Key topics include defining the target audience, balancing gameplay, developing characters, and creating a compelling narrative. The answers to these questions are the foundation of a successful game project and directly impact its marketability.

  • Where do enemies come from? Do they run out of doors? Do doors lock afterward?
  • How does the player open the door? Do they simply walk up to it and it slides to the side? Or does it swing open? Does the player need to press a button for the door to open?
  • Will the door close behind the player?
  • What happens if you have two players? Will it only close after both have passed through it?
  • And if one player is standing in the doorway, will the other be able to pass through?
  • If the level is large and cannot all exist at the same time, what happens if one player goes through the door and the other is left behind? Will the floor (and the entire level) disappear beneath the remaining one?
  • How big does a door have to be for the player to fit through it?
  • How many companions can follow you through the door without getting stuck?
  • What about mini-bosses that are larger than the player? Do they need to fit through the door?

Game developers take different approaches to implementing doors in their projects. In some cases, they prefer to do away with doors entirely. For example, in the 2005 game Pathologic, interior doors were practically non-existent, and entrance doors served only as triggers that loaded the corresponding location when the action button was pressed. This solution allows for simplified gameplay and allows for focus on other aspects of interaction with the environment.

In the 2019 remake of Pathologic 2, interiors feel like a natural continuation of outdoor spaces. However, the game takes time to load these interiors, causing doors to remain closed. When approaching a door and pressing the action button, the player momentarily loses control of the character, who automatically opens the door, steps inside, and closes it behind them. This creates an immersive atmosphere, but can also cause slight delays in gameplay.

The 2017 role-playing game Elex has no doors, except for certain plot points. Even the prison cell where the intruder is held has no door—the player can simply get up and leave. In some cases, NPCs act as doors, standing in doorways and blocking the entrance. This solution creates a unique atmosphere in the game world and emphasizes the freedom of movement inherent in Elex.

Strange cage without a doorScreenshot: Elex / Piranha Bytes game

Removing doors from games is a rather radical decision. Developers often look for more intuitive ways to interact with them. In the recently released Banishers: Ghosts of New Eden, to pass through a door, the player must press the action button. Even if the character is moving, they will stop, and an animation will begin showing the hero opening the door and passing through it. This approach preserves the feeling of realistic interaction with the game world, adding elements of immersion and fluidity to the gameplay.

Please note that in the presented video the door opens in both directions. In real life, such doors are rare, but in games, this simplification is widely used. This solution improves gameplay, making it more convenient and dynamic for players.

A door opening toward the player requires free space in the room. This means the player must back away. If they don't, various door behaviors are possible. Depending on the implementation, the door may fail to open, push the player into an undesirable position, pass through them, collide and stop, hit and close, or stop and wait for the player to move away to complete the animation. Developers need to determine in advance how exactly the door will behave in such situations to ensure smooth gameplay and avoid inconvenience to the player.

Screenshot: Gone Home game / Fullbright

Doors that open inward require specific animations and slow the player down, which creates additional difficulties in gameplay. It is impossible to quickly pass through such doors, especially when you need to take cover from an enemy. This is why, even in games striving for realism, developers choose unrealistic solutions: doors that open in both directions. A prime example of this is the game Gone Home, where doors function in a way that does not interfere with gameplay and provides a smoother and more dynamic gaming experience.

Getting doors to function correctly in video games is one of the most challenging tasks for developers. Despite advances in this area, many games still encounter bugs related to the mechanics of interacting with doors. This is a complex problem that requires careful development. This is why in most games, doors open incorrectly: they can slide to the side, disappear into thin air, or open in unusual ways. Players often can't fully interact with them, which negatively impacts overall immersion. Improving door mechanics is an important aspect that can significantly improve the quality of the game and user satisfaction.

In a realistic house like the one in Gone Home, creating an atmosphere where everything feels as natural as possible is key. Every interior element and detail should convey a sense of reality, allowing players to become more immersed in the game environment and better understand the story. It is important that lighting, textures, and object placement contribute to the creation of a believable space that would evoke an emotional response in players and a desire to explore further.

In video games, we made one exception: doors open in both directions, which is not the case in real life. This solution helps avoid situations where the player finds themselves in a difficult situation. Opening doors in both directions improves the gameplay, allowing users to freely explore the world and make decisions without restrictions.

Programmer Jonnemann Nordhagen's commentary on Gone Home with developer messages enabled. This mode offers players a unique insight into the development process and the creators' vision. Messages reveal nuances of gameplay and highlight the team's creative approach. Gone Home offers not only a captivating storyline but also the opportunity to immerse yourself in the world of development, which makes the game interesting for gamers and video game lovers in general.

Also, for some reason, the doors in Gone Home are very thick. Screenshot: game Gone Home / Fullbright

Speaking about the game Gone Home, it is worth noting the presence of doors that slide into the walls in some rooms. Interestingly, from a technical standpoint, these doors resemble drawers from a table. This solution adds uniqueness to the gameplay and creates a special atmosphere of interaction with the environment.

All sliding doors in the game are actually drawers in terms of code. When I designed an element that could slide along a special drawer track, Steve Gaynor, co-founder of Fullbright, adapted it to his needs. So, designers often use existing ideas to create new elements, and in our case, this led to the appearance of sliding doors in the game.

Commentary from programmer Jonnemann Nordhagen on Gone Home in the mode with developer announcements enabled. This mode allows players to see insider information and development details, which enriches the gaming experience. Nordhagen shares insights into the game's creation process, its concept, and the techniques used to convey its atmosphere. The inclusion of developer messages helps provide a deeper understanding of the game's story and mechanics, and offers a unique perspective on the team's struggles and achievements.

In the Resident Evil series, starting with the fourth installment, doors open in both directions, always away from the player. In the fourth installment, opening a door required pressing the action button, and by quickly pressing it twice, the character could kick the door open. However, starting with the seventh installment, doors open automatically when the character approaches them. As a result, doors become more of a visual barrier, and the player doesn't feel their physical presence. This change in the door opening mechanics affects the overall atmosphere of the game and the perception of the game world, making it more dynamic, but less realistic.

Horror games from Frictional Games cannot be ignored, as they are known for their unique mechanics of realistic interaction with objects. In the game, to open a door, the player uses the cursor, grabbing it, and by moving the mouse, it gradually opens, just like in real life. This innovative interaction system immerses the player in an atmosphere of fear and tension, making every action more tangible and meaningful. Frictional Games successfully creates games that are not only scary but also make you think about the mechanics of interaction in virtual space.

The mechanics of Amnesia: The Dark Descent were borrowed from the earlier game Penumbra, but they have undergone significant changes and improvements. The developers have made adjustments to make the gameplay deeper and more intense, creating a unique experience for players.

Screenshot: Amnesia: The Dark Descent / Frictional Games

Imagine two everyday situations. In the first, you suddenly open a door, and it hits the wall and slams shut. In the second, you push a closet door hard to close it, but it springs back open due to the force of the impact. Similar issues with doors arose in Penumbra, making it difficult to escape from enemies. In Amnesia, this flaw has been fixed. Now, the door locks in an open or closed state as soon as you let go, significantly improving gameplay and making interaction with the environment more realistic.

The differences between the games are not as significant as in Penumbra, but they significantly simplify interaction with doors. In Amnesia, when a monster is chasing the player, it is possible to open and close doors, which allows you to buy precious time to escape. In contrast, in Penumbra, trying to hide from the monster behind a door often ended fatally.

Frictional Games, the creators of Amnesia: The Dark Descent, shared some important information in a comment on the official forum. They discussed development aspects that influenced the game's creation, as well as their relationship with the player community. The company emphasized their approach to creating an atmosphere of fear and tension, which has become the hallmark of their projects. Frictional Games also noted that player feedback plays a key role in the process of improving and adapting their games.

In this video, we demonstrate the process of opening and closing a door that does not bounce off the walls and remains completely under our control. It is worth noting that Amnesia: The Dark Descent is one of the few games in which doors open only in one direction. This adds uniqueness to the gameplay and creates an atmosphere of tension and realism.

Game developers sometimes encounter unexpected problems, and one striking example of this is the case with the doors in the Blood and Wine expansion for The Witcher 3: Wild Hunt. During development, the team suddenly discovered that all the doors in the game began to open without restrictions. Players could pass through doors that were supposed to be accessible only as part of the storyline. This error led to significant difficulties and required additional efforts from the developers to fix. Such situations highlight the importance of thorough testing and quality control in the gaming industry.

We could not figure out the situation for a long time. This created significant problems, as some houses had missing floors, causing players to fall into the void when entering. This decision was made for optimization, as there's no point in filling houses with content that can't be entered. Optimizing the game world is important for ensuring stable performance and improving the user experience.

Miles Tost is a level designer who contributed significantly to the development of the acclaimed game The Witcher 3: Wild Hunt. His work on creating the game's open world, filled with detail, atmosphere, and engaging quests, helped make the project one of the most successful in the video game industry. Tost is responsible for developing environments that not only look beautiful but also offer players a unique experience interacting with the world around them. Thanks to his creative approach and attention to detail, The Witcher 3 became a benchmark for many games in the RPG genre.

Screenshot: The Witcher 3: Wild Hunt / CD Projekt RED

Interesting fact: when you install a house in the game, doors are not included. The developers add them separately. When playing The Witcher 3, it's worth keeping in mind that each door was installed and configured manually. This feature required the team to carefully test all the doors, which adds uniqueness and realism to the gameplay.

The issue lay in a quest involving storming Dun Tynne Castle. The development team decided to limit player interaction with the world to focus on the action scenes. As a result, Geralt was blocked from accessing additional doors. The developers implemented a mechanism whereby all doors in the game are automatically locked for the duration of the quest and then reopened after its completion. However, the game doesn't take into account which doors were initially closed and ends up opening them indiscriminately. This creates confusion and disrupts gameplay, as players lose a sense of the world's realism. Fixing this issue will improve interaction with the game and increase immersion.

Solving this issue proved to be quite complex. The quest designer had to go through every door in the game and manually set the tag: "This door was previously locked and should remain locked." This required significant effort and time to ensure the game mechanics function correctly and maintain the integrity of the gameplay. This approach helped avoid future mistakes, providing players with a more engaging and engaging experience.

Miles Tost is an experienced level designer who made significant contributions to The Witcher 3: Wild Hunt. His work on the project was key to shaping the game's unique world, filled with detail and captivating quests. Tost specializes in level design that immerses players in a medieval fantasy setting where every action matters. Thanks to his expertise and attention to detail, The Witcher 3 has been recognized as one of the best games of its generation, confirming the high interest in level design and its impact on gameplay.

In Half-Life 2, the implementation of virtual reality (VR) support encountered a significant problem early in the adventure. In the scene where Barney knocks on the door, a guard opens it, but when playing in VR, the door immediately closes, making further progress impossible. This bug creates significant difficulties for players looking to enjoy classic games in VR. A solution to this issue requires developer attention and updates to ensure a fully functional virtual reality experience.

When integrating virtual reality (VR) into the game, the developers used an updated version of the compiler, which differs in the precision of its calculations. In this scene, the door opens according to the laws of physics, but when it reaches its full opening, the physics are disabled. It is important to note that there was a guard positioned on the opposite side of the door in its path. The edge of the guard's hitbox protruded into the door's movement area, causing constant snagging and glitches in the opening mechanics. This creates problems for gameplay and requires improvements to the collision system to ensure smoother interactions between objects in the virtual environment.

Previously, this issue did not occur because the door was significantly heavy and would move the guard's hitbox when it collided with it. However, with the implementation of the new compiler, the door has become lighter, and when it hits a guard's hitbox, it bounces back, closing again. This change impacts gameplay as object interactions are less predictable and can create additional challenges for players.

That same door that didn't want to work correctly Half-Life 2 VR Mod / Valve, source: 99TH VR

In 2021, a discussion on the social network X (formerly known as Twitter) unfolded in which developers from various games shared their difficulties implementing doors into gameplay. The thread was initiated by Stefan Hövelbrinks, developer of the post-apocalyptic RPG Death Trash. He noted that doors are a complex element in games, as they can cause numerous bugs. They can also block pathfinding systems, and be locked or destroyed. It's important to understand that each of these possibilities requires separate logical development, which complicates the development process.

When a small indie developer implements doors into their first game, which combines combat and non-combat elements, as well as various control and movement systems, it can be a real challenge. Developing such mechanics requires attention to detail and meticulous planning, which can present significant challenges during the development process.

Stefan Hövelbrinckx is a talented video game developer known for his work on Death Trash, a game distinguished by its unique style and immersive gameplay. Stefan created Death Trash as an indie project that combines RPG and action elements, offering players an open world filled with intriguing characters and a deep story. His approach to development emphasizes the importance of atmospheric design and interaction with the surrounding world, making Death Trash an interesting choice for fans of the genre.

Author of the horror Project Nightmares Case 36: Henrietta Kedward shared details about the door interaction mechanics in his game. Specifically, he discussed how players encounter enemies on the other side of a door. This feature adds an element of tension and strategy, making gameplay more exciting and unpredictable.

If an enemy is closer to a door than the player character, they are given priority to open it. Otherwise, the player can block access to the door, preventing it from opening.

Screenshot: Project Nightmares Case 36: Henrietta Kedward / NC Studio

The discussion touches on the uniqueness of doors in The Last of Us Part 2. The protagonist doesn't just interact with them, but demonstrates realistic movements, opening them in various situations and from different positions. This adds realism to the gameplay and enhances immersion in the game world. Each interaction with the doors becomes an important element, emphasizing the developers' attention to detail and desire to create an immersive experience for players.

How The Last of Us Part 2 Works with Doors

The Last of Us Part 2 stands out for its high level of animation, which makes the gameplay even more realistic. When interacting with objects, for example, when opening a door, the character does not simply perform a magical action. The player will have to use the door handle, which adds an element of immersion. Interestingly, the character does not have to take a certain pose for the animation to start. This means that the action will happen naturally, regardless of whether the hero is standing at the door, sitting nearby, turned sideways, or even if his hands are occupied with a weapon. This interaction mechanic significantly increases the level of engagement and allows players to feel part of the game world.

Animation in The Last of Us Part 2 is implemented using the Motion Matching system, which ensures smooth transitions between different character movements. This system breaks animations into individual frames, then selects those that combine most harmoniously and generates a new animation that matches the character's pose and trajectory. Thanks to this approach, the game achieves a high level of realism and naturalness in character movements, which significantly improves the user experience.

Inverse kinematics plays a key role in ensuring the correct grip of the pen by the palm from any position. This process involves calculating the necessary bending angles of the hand joints so that the palm can reach a given point or hold it for a certain amount of time. Thanks to inverse kinematics, the interaction between the hand and objects becomes more natural and efficient, significantly improving the functionality of various devices, including robotics and virtual reality.

The player has the ability to move freely, while the hand will naturally bend and straighten at the joints, allowing the user to hold a door handle in any position. This ensures a high level of interaction and realism in the gameplay.

Screenshot: The Last of Us Part 2 / Naughty Dog

The character reacts impressively to the door opening, smoothly adjusting to its movement, as if leaning towards it. This detail creates a natural effect and enhances the realism of the game environment, making interaction with the surrounding world more immersive.

This is a synchronized animation that allows the player to interrupt it as early as the 8th-10th frame using the stick on the gamepad, which is responsible for the character's movement. The remainder of the unfinished animation of the character's torso smoothly transitions into another animation. This approach improves player interaction with the game and makes the process more dynamic and comfortable.

Inverse kinematics ensures a stable hand position on the door handle, while the character's body moves through the doorway. Motion Matching technology controls torso movements by comparing the current pose and stick angle. This allows movement to begin at the last moment of contact with the door handle, even if the upper body has not yet completed the animation of passing through the door. This achieves a high degree of animation realism and fluidity, improving the overall user experience.

Maxim Zhuravlev is a senior animator at Naughty Dog. He plays a key role in creating animation for games developed by the studio, which is known for its high-quality projects. Thanks to Maxim's experience, Naughty Dog games acquire a unique expressiveness and dynamism, making them unforgettable for players. In his work, he uses modern animation technologies and techniques to achieve the highest level of realism and engagement. Having such a specialist on the team allows Naughty Dog to remain at the forefront of the gaming industry and constantly surprise its fans.

A door that opens 70° is a physical object that adequately reacts to interactions with the environment. Upon collision, it can bounce back or hit a character. This creates a sense of realism when passing through a doorway, as its behavior matches player expectations and adds dynamism to the gameplay.

Naughty Dog Game Director Kurt Margenau shared information about the door mechanics in The Last of Us Part 2. He emphasized the importance of the protagonist closing doors for stealth traversal of locations. Closed doors not only help avoid enemy attention but also slow down their movement. However, the developers had to solve a complex problem: how would the character be able to close doors in combat while moving? Implementing a well-developed animation in such situations proved to be a significant challenge.

We developed seven prototypes allowing the player to manually close doors. However, all of them were unsuccessful. We experimented with button-holding mechanics and other unusual schemes. The animation issue also posed a challenge. We didn't want an unfinished door closing animation to interfere with the player, for example, in critical moments when they need to quickly retreat. Ultimately, we came up with a solution: during combat, doors close automatically and slowly. This approach proved to be the most convenient for the player, ensuring smooth gameplay and minimizing risks in tense situations.

Kurt Margenau is Game Director at Naughty Dog, a company renowned for its high-quality video games. His role includes overseeing the development process, creating unique gameplay mechanics, and ensuring a high level of player interaction. Kurt is actively involved in shaping the creative vision of projects, which contributes to the successful implementation of the team's ideas. Under his leadership, Naughty Dog continues to release games that receive acclaim from critics and players worldwide.

In non-combat situations, doors remain open, allowing the player to see where the protagonist came from. The Last of Us Part 2 features approximately 40 different types of doors, each requiring a unique rigging process—the process of creating a model's internal skeleton responsible for its movement. The developers noted that the doors open in both directions, but always away from the player. This solution allows for faster interaction and does not interfere with the character's movement. To achieve this, the doors were modeled with double hinges, which explains their ability to swing in both directions. This approach not only improves gameplay but also adds realism to the gaming environment.

The Door Problem in VR

Implementing door-opening mechanics in virtual reality presents significant challenges. This is especially true for games like Half-Life: Alyx, where the player must interact with controls to open the door. In this game, the player must grab the handle, turn it, and then pull it toward them. This approach creates deeper immersion and a sense of physical interaction, making the gameplay more realistic and engaging. It's important to keep in mind that such mechanics require careful design to avoid inconvenience and ensure intuitive control for users.

In 2019, at the DigiPen Institute of Technology, programmer Kerry Davis, who has worked on popular games such as Portal, Half-Life, Team Fortress, Counter-Strike, and Half-Life: Alyx, gave a lecture on solving the problem of interacting with doors in virtual reality. In his presentation, he discussed the approaches and methods used at Valve to create realistic and intuitive user experiences with virtual objects. Kerry Davis's lecture was an important contribution to the field of game development and virtual reality, emphasizing the importance of technical solutions in creating immersive gaming experiences.

The developers encountered the first problem during testing - players could not open the door. Initially, it opened only in one direction, which caused difficulties in understanding the mechanics of interacting with it.

Screenshot: Half-Life: Alyx / Valve game

In virtual reality (VR), by default, the virtual hand follows the movements of the real hand, maintaining their position. However, there is a chance that the virtual hand may drift significantly from the real hand before the player is aware of this discrepancy. This happens because the player is not always aware of the exact location of their real hand and can be confident that it is in the same position as the virtual one. This phenomenon highlights the importance of precise calibration and motion tracking in VR to create a more immersive and realistic experience.

Imagine a situation: there is a door that needs to be opened towards you. When the player first tries to open it away from you, they move their real hand forward. However, the door doesn't open, and the player realizes they need to act differently. They move back, but the door still doesn't open. At this point, the player begins to think the door is simply locked and decides to move on. The reason for this failure is that when the player first pushes the door, the real and virtual hands are in different positions. The virtual hand remains on the door handle, while the real hand moves outside the door. Therefore, to successfully open the door, the real hand must first return to the position of the virtual hand, and then move back with it. The player is unaware of this moment, since the virtual hand is where it should be in this situation. To improve interaction with the game environment, it is important to consider the physical and virtual aspects of controls, which will help avoid discrepancies and improve gameplay.

He believes that to open the door, it is enough to simply pull it towards himself. However, given that his hand is outside the door, this movement is not enough to open it.

Kerry Davis is one of the key developers of Half-Life: Alyx. His contribution to the creation of this project significantly influenced the development of virtual reality in the gaming industry. Half-Life: Alyx became a landmark event for fans of the series, offering a unique immersive experience in the world of Half-Life. Davis and his team used cutting-edge technology to create realistic physics and a compelling story, making the game one of the most anticipated and highly acclaimed in its genre. Kerry Davis's role in the development of Half-Life: Alyx underscores the importance of creativity and innovation in modern game design.

In this situation, it makes sense to use visual cues indicating the direction in which the door should open. In Half-Life: Alyx, some doors are already slightly ajar in the correct direction, allowing the player to immediately understand whether to push or pull the door. Such design elements not only facilitate interaction with the game's environment but also contribute to a more intuitive gameplay experience.

To avoid cues, doors should be allowed to open in both directions. Kerry Davis argues that most players will do what they feel most comfortable doing, not realizing that another option exists. If they discover it later, they will be pleasantly surprised. For example, in one playthrough, a blogger opens a door forward, while another blogger, in a similar situation, pulls the door toward them. This approach expands the possibilities for interaction and makes gameplay more engaging.

The Half-Life: Alyx Workshop Tools, designed for creating custom levels, include an Open Direction setting. This setting determines how a door opens: in both directions, only forward, or only backward. In their documentation, the developers recommend designing doors that open in only one direction for greater realism. This helps create a more natural interaction with the game environment and improves overall gameplay.

Screenshot: Half-Life: Alyx / Valve

In Half-Life: Alyx, almost every door is equipped with a push-button handle, adding realism to the gameplay. The animation of this handle is precisely synchronized with the movements of the player's palm, creating a completely immersive effect. Turning the handle 90° opens the lock, simulating the actual interaction with the door. This mechanic is intuitive, as most players are familiar with the operation of similar door handles in real life.

During testing, players often simply grabbed the door handle and attempted to open it without turning it. This demonstrates the need for more intuitive control of door mechanisms in the game.

Real-world experience does not automatically transfer to virtual reality. Even experienced players realize that current technology does not provide an accurate simulation of the real world in VR. Inexperienced players lack certain expectations, which leads to them not making an effort to explore the possibilities of virtual reality and, consequently, not making progress. This highlights the importance of learning and adapting to new technologies so that players can fully utilize VR's potential.

Kerry Davis was one of the developers of Half-Life: Alyx, a landmark game in the world of virtual reality. His contributions to the game helped set new standards for VR projects. Half-Life: Alyx was acclaimed for its innovative gameplay and gripping storyline, making it an essential part of the Half-Life franchise. Davis was heavily involved in the development of mechanics and visual effects, creating a unique gaming experience. The work of Kerry Davis and his team demonstrated how virtual reality technology can change the approach to game design and interaction with players.

Screenshot: Half-Life: Alyx game / Valve

The developers found an effective solution by demonstrating interaction mechanisms in the game. When the player grabs the door handle, a short animation plays showing a virtual hand turning it downwards. This creates the illusion that the player is making this movement themselves, which helps better understand how to correctly interact with the game world. This approach improves the user experience and deepens engagement, allowing players to feel more part of the gameplay.

Similarly, a locked door can be indicated by an animation of a hand reaching for the handle but unable to turn it. However, solving these issues doesn't free VR game developers from the problem of doors. They also need to determine when a door is considered open enough for the player to pass through. For example, will a door that swings in both directions be considered closed when it completely covers the doorway?

An important aspect of game development is interaction with the environment, especially in virtual reality. For example, what happens if the player attempts to close a door when an NPC is in the doorway? In traditional games, the door might simply not respond to the action button until the NPC leaves the doorway. However, in VR, the player controls the door's movement, which requires a more thoughtful approach. Game designers must consider such scenarios in advance to ensure realistic and intuitive interactions that do not break immersion.

Subscribe to our "Checkpoint" Telegram channel. Here you will find a comfortable space dedicated to the world of games and the process of their creation. We share useful tips from developers and inform you about significant updates to popular software. Comments are open for your suggestions on new topics and discussions on any issues related to the game development industry.

Game designer profession from scratch to PRO

A game designer creates the structure of a game. They think through the idea, rules, gameplay and decide what emotions the plot will evoke in players. You'll master game design principles from scratch and learn how to work with popular engines like Unity and Unreal Engine. You'll learn how to retain player interest and monetize games. And we'll help you start a career in the gaming industry.

Learn more