JoVE Logo

Sign In

A subscription to JoVE is required to view this content. Sign in or start your free trial.

In This Article

  • Summary
  • Abstract
  • Introduction
  • Protocol
  • Results
  • Discussion
  • Disclosures
  • Acknowledgements
  • Materials
  • References
  • Reprints and Permissions

Summary

Rip currents are among the deadliest meteorological hazards in the United States. In order to demonstrate the proper actions to take when caught in a rip current in a memorable and engaging way, a virtual reality video game is developed.

Abstract

Beachgoers in the United States face many different hazards, but rip currents are annually the deadliest for ocean swimmers. Despite the risk presented by rip currents, it is apparent that the public has a limited understanding of their danger and the proper mitigating actions to take when caught in one. A virtual reality (VR) video game placing participants in a simulated rip current was developed to help ameliorate this issue. The VR game was used to survey beachgoers on the Atlantic Coast of Long Island, New York during July and August 2019. The actions participants took when confronted with the rip current were recorded, along with whether they escaped it or drowned. An interview with each player was also conducted after they partook in the game to determine the realism of the rip current simulation and its effectiveness in demonstrating proper actions to take when impacted by one. Analysis of those results indicates that VR has potential to communicate rip current risk and ways to minimize it in a unique and engaging manner. However, further work is needed to improve ease of use of the VR simulation and better understand how factors such as demographics influence perceived rip current risk and behavioral response.

Introduction

Rip currents are “strong, narrow flows of water that extend away from the beach1.” Rip currents can commonly occur on any beach with breaking waves and can transport swimmers quickly away from shore. Hazardous rip currents can occur on seemingly ‘safe’ beach days with wave heights of only 2 to 3 feet2, and thus can surprise swimmers as they are carried a considerable distance from shore. This puts swimmers at risk of panic, exhaustion, and even drowning. As a result, rip currents are one of the leading causes of weather fatalities in the United States. For example, in 2018, 71 deaths were attributed to rip currents, and for the 10-year period 2009-2018, an average of 58 individuals perished each year3. Rip currents are the leading hazard for beachgoers; in 2018, rip current deaths represented 65% of all ‘surf zone’ fatalities in the United States. There seems to be some demographic control on rip current vulnerability, as one study found that men are over six times more likely than females to drown from rip currents than females4. Moreover, additional research found that infrequent beach users are more likely to make poorer beach safety choices5 and that non-locals are considerably more likely than locals to sustain injury in the surf zone6,7.

Nevertheless, despite their place among the deadliest weather hazards in the United States, rip currents are poorly understood by the public. A survey of 392 public beach users in Texas determined that only 13% could correctly identify a rip current from photographs presented to them8, while similar results were found in studies conducted in Pensacola Beach, Florida9 (15%) and Miami Beach, Florida10 (27%). More broadly, Houser et al (2017)5 performed an Internet-based survey with 1622 respondents across 49 of the 50 US states and found that 54% of the participants correctly reported an action to take when caught in a rip current. However, the self-selected nature of the survey sample dictated that only 10% of the sample was infrequent beach users, who are most vulnerable to rip currents and were shown in the survey to possess less knowledge of what to do in one.

It is clear that rip currents present a unique challenge, given that they are poorly understood by the public, can occur suddenly over small scales with minimal or no prior warning, and may result in death. Thus, new approaches are needed to address this public safety challenge. Immersive technology such as virtual reality (VR) provides an innovative approach to increase rip current literacy and encourage positive behavior upon impact. Prior research has indicated that VR and similar types of immersive media are highly effective at communicating information. VR is generally defined as an interactive experience taking place within a simulated environment that incorporates auditory and visual feedback, usually with the assistance of a headset. One recent study11 asserted that VR is a mature technology, well-suited to assist in the scientific inquiry process. Moreover, other recent research12 showed that when individuals read a New York Times story with a VR supplement, they were more likely to perceive the source as being credible, recall the information presented, share it with others, and feel an emotional connection, than those who read the article in traditional media, with just text and graphics. Additional studies13,14 concluded that immersive media promotes education by increasing engagement and real-world applicability of a topic. Most recently, researchers15 leveraged VR to simulate a Category 3 hurricane landfall and determined that survey respondents viewing the VR were significantly more likely to consider evacuation than those only viewing traditional text and graphic products. Despite its clear utility, no studies or initiatives have shown comprehensively how VR can be effectively applied to the unique challenge of training beach users to better locate and react to rip currents. The present work fills that research gap by first teaching individuals how to swim and wave in a virtual ocean environment and then evaluating how they react to the sudden and unwarned onset of a rip current. Participants were trained in both swimming and waving for help because each of those actions are regarded as valid responses when caught in a rip current16,17, with conditions particular to an individual rip often dictating which action might be most effective in facilitating escape18. We hypothesize that the realistic and memorable nature of a VR rip current simulation will allow participants to successfully take evasive action in the virtual game and then report that the experience enhanced their knowledge of rip current risk and mitigation. 

Access restricted. Please log in or start a trial to view this content.

Protocol

All methods used were approved by the Hofstra University Institutional Research Board (IRB). The VR video game developed was used to survey 64 individuals.

NOTE: Scripts were written in the C# language, and are available for download at: https://github.com/Jasebern/HofstraVR.

1. Creation of VR rip current video game: Virtual environment and user input/output

  1. Open VR development platform (e.g., Unity18). This procedure was completed in Unity 2018.3.1f1.
    1. Start a new 3D project entitled ‘Rip Current.’ A 3D project contains one or multiple scenes comprising of ‘game objects’ that can appear as solid objects19. Scripts can be added to game objects allowing for interactivity and real time changes to the environment. This project will contain four scenes and numerous game objects.
    2. Open the Unity Asset Store tab. This contains ‘prefabs’-- already-created collections of 2D and 3D game objects and audio files -- developed by other users that can be added to the project20.
    3. Import the ‘Oculus Integration’ asset from the Unity Asset Store that provides foundational assets for VR development.
  2. Create the first new scene: Main Menu (Figure 1).
    1. Use Assets | Create | Terrain Layer and then add appropriate coloring to create a hilly green terrain asset as an appealing background for the main menu scene.
    2. Use GameObject | UI | Canvas to add a new canvas, entitled Main Menu, with a text box for the title VR Simulation. A canvas is a game object that stores text and buttons allowing user interaction and specified events in the simulation based on that input4.
    3. Attach scripts, written in the C# language, to a game object. Add the script by selecting the desired target game object in the scene hierarchy. Then, in the Inspector tab, select Add Component | New script, and enter the desired script title.
    4. Follow the above procedure to add the script entitled MainMenu to the Main Menu canvas.
      NOTE: Please see Table 1 for title and function of all scripts used.
    5. Use GameObject | UI | Button to add four text buttons to the canvas: Start, Options, About, and Quit. Call appropriate function from MainMenu and MouseHover scripts when a button is selected.
  3. Create the second new scene: Buoy Test (Figure 2).
    1. Download the Realistic Water asset from the Unity Asset Store and add the Sea prefab to the scene.
      1. Add an audio file of ocean waves to the Sea prefab on loop. Add from the Inspector tab by selecting Add Component | Audio Source.
    2. Use the terrain layer tool as above to create a Game Object named Beach. In the Terrain options in the Inspector tab, use the Paint Terrain and Terrain Settings tool to style and color as sand.
    3. Download the Standard Assets package from the Unity Asset Store and add the Player prefab to the scene. The Player prefab includes a Camera that is embedded within the Player, thus following its movements to create the sensation that the game participant is controlling the Player.
      1. As performed above, add the PlayerController, PlayerMotor, PlayerMotor2, and FloatObject scripts to the Player prefab. Those scripts allow the game participant to control the Player prefab by using Oculus VR Controllers.
      2. Add an animation to the Camera by selecting Assets | Create | Animator Controller. Use the Animator Window to record an animation of the Camera bobbing up and down and set it to loop continuously. This simulates a person keeping afloat in the ocean.
      3. As performed above, add a Canvas entitled TextCanvas. Child TextCanvas to the Player by dragging it into Player in the hierarchy. A child game object inherits the movement and rotation properties of the parent game object. Add the text “Swim through the buoys” to TextCanvas. Record an audio file reading that text, add it to TextCanvas as performed above, and set it to play at the start of the scene.
      4. Set the player location by navigating to the inspector tab and adjusting the Position in the Transform options. Set player location to X=-23.44, Y=1, and Z=5.97.
    4. Download the VR Hands and FP Arms Pack from the Unity Asset Store and as above child the ‘FP_Character’ prefab to the Player. This will allow the arms to move with the Player and also bob up and down with the Player Camera.
      1. Choose the desired prefab by selecting it in the hierarchy and checking the box next to its name. The FP_Character prefab contains both male and female prefabs, each containing two arms, left and right.
    5. Add a new Game Object by right clicking in the Hierarchy and selecting Create Empty. Name the Game Object Checkpoint.
    6. Download the Simple Buoy asset from Unity Asset Store and add the Buoy prefab to the scene as a child of the Checkpoint. Duplicate the Buoy prefab by right clicking on it and selecting Duplicate. Name one ‘buoy L’ and the other ‘buoy R,’ and place them 4 units part in the X axis by adjusting the transform position of each as above. Set the location for buoy L at X=-2, Y=0, and Z=0, and location for buoy R at X=2, Y=0, Z=0.
      1. In the Inspector tab for the Checkpoint Game Object, select Add Component | Physics | Box Collidor. Then, select Edit Collider and draw the collider between the two buoys.
      2. As above, add the Checkmark script to the Checkpoint Game Object. The script exits the scene once the Player enters it (i.e., swims through the buoys) and transitions to the next scene.
  4. Create the third new scene: Wave Test (Figure 3) by selecting File | Save As while still in the Buoy Test scene and renaming it.
    1. Delete the Checkpoint Game Object by right clicking on it in the Hierarchy and selecting Delete.
    2. Add a simple wooden boat to the scene by downloading the Old Wooden Row Boat v2 asset from the Unity Asset Store and add the Boat prefab to the scene. Adjust the Transform position of the boat as above to X=-12, Y=-0.16, and Z=14.66.
    3. Download the Low Poly Animated People asset from the Unity Asset Store and add the Kid prefab to the scene. Duplicate the Kid prefab as above and child both to the Boat prefab, renaming the Game Object to Boat with kids, and locating the two kids on top of the two seats in the boat.
    4. As above, add an Animator to the Boat with kids Game Object, and record an animation of the boat slowly circling around the water, emulating a rowboat slowly moving around.
    5. Navigate to the Player prefab and its children in the Hierarchy window and rename the left hand to ‘wave hand.’
      1. As above, add an Animator to the wave hand and record an animation of the arm and hand moving up and down simulating a hand wave.
      2. As above, in the Inspector tab for the Player Game Object, add an Audio Source with an audio clip of a hand splashing in water, distinct from the clip of two arms splashing in the water added earlier.
      3. As above, add the FemaleAnimate script to the wave hand, to allow the game participant to control the hand wave using the Oculus Controllers.
    6. Adjust the text in TextCanvas to read ‘Wave to the people on the boat!,’ record an audio file reading that text, and set it to play at the start of the scene.
    7. Based on the PlayerMotor2 script, as soon as the participant sees the boat and waves, Unity transitions to the Rip Current scene.
  5. Create the fourth new scene: Rip Current (Figure 4).
    1. Adjust the text in TextCanvas to read ‘You are being pulled from shore!’ and as above, record an audio file reading that text, add it to TextCanvas, and set it to play at the start of the scene.
      NOTE: Do not explicitly state that the participant is experiencing a rip current, in order to most accurately simulate being unexpectedly caught in a rip current. 
    2. As above, create a new Game Object in the hierarchy named rip_collider and add a Box Collider. To use rip_collider to emulate a rip current as a narrow channel of flow extending from the beach into the ocean, use transform to set the position to X, =251, Y=1, Z=251, and change the scale to X=8.2 and Z=35.7 to create appropriate dimensions. The PlayerMotor2 script also simulates a rip current by constantly pulling the Player perpendicular (away) from shore (i.e., beach terrain). This rip current is a constant force 1.25 times stronger than the normal player swimming motions.
      1. Select GameObject | Effects | Particle System to add a new particle system, entitled ‘Rain Basic,’ and child it to rip_collider. A particle system emulates liquid entities in 3D such as rain and clouds. The particle system is used to simulate foamy water, which helps demarcate a rip current in ocean water. To do so, in the Inspector tab set the transform position to X=0, Y=3, and Z=0.97, and scale X=0.1 and Z=0.1, in order to embed the particles within the rip current channel.
    3. As above, use the Inspector tab to add the RipExit script to the rip_collider Game Object. The script records whether the Player escapes the Rip Current (i.e., exits the rip_collider collider).
      NOTE: As described in Table 1, the PlayerMotor2 script controls most aspects of the Rip Current scene, by exiting the scene and returning back to the Main Menu scene once any of the following conditions is met:
      -- Player waves
      -- Player exits rip_collider
      -- Stamina reaches zero
      The script also writes out the results of player interaction in the scene to a file, used for later data analysis on overall participant interactions with the rip current.
  6. To build the final project, select File | Build Settings and ensure all four scenes created are checked off and in the proper order. Then, select the platform PC, Mac & Linux Standalone and select Build. This will prompt a selection window for a build output folder. Select a suitable folder (i.e., ‘Desktop’) and then build. This will create an executable file shortcut in the desired folder entitled ‘Rip Current.’

2. Survey individuals with the VR rip current video game

  1. Open up the ‘Oculus’ software using the desktop shortcut, and then set up the hardware through the program. Ensure that the headset, two sensors, and two controllers are all showing as green (Figure 5).
    1. Determine a survey location and recruitment method. In this study, convenience sampling was employed. The researchers visited a public beach two times per week for eight weeks during July and August and solicited potential participants while they walked along the beach promenade. Besides being at least 16 years of age, there was no other requirement besides willingness to participate.
  2. Administer survey part one (consent form and demographic questions) on a separate iPad.
  3. Hand the VR controllers to the participant and make sure they are holding them properly in the correct hands, and are familiar/comfortable with the controls, and then fit the headset on the participant.
  4. Select and run the Rip Current shortcut from the Desktop.
  5. Allow the participant to proceed through the simulation, providing coaching/advice only when necessary. They should complete the main rip current scene on their own.
  6. Once they finish, remove the headset and begin part two of the survey, the interview portion.
  7. Plug a microphone into a tablet and begin recording. Ask questions regarding prior knowledge and experience with rip currents and the efficacy of the rip current simulation at demonstrating the proper actions to take, as well rating of its realism and immersive nature.
  8. Once the interview is complete, stop recording, thank the participant, and provide compensation as desired. Save the interview file with name corresponding to date and player number as recorded in the Rip Current scene.

Access restricted. Please log in or start a trial to view this content.

Results

The VR rip current video game survey was conducted in July and August 2019 on Long Island at the Town of Hempstead Beach in Point Lookout, New York (detailed results can be found in Supplementary Table 1-3). 64 individuals played the game and responded to the survey, with 60 escaping the rip current and 4 drowning (i.e., stamina reached zero). Among the 60 who escaped, 51 exited by waving for help, and 9 did so by physically swimming out of the rip. Given that most participants waved for help as a means ...

Access restricted. Please log in or start a trial to view this content.

Discussion

Preliminary analysis of the results from the follow-up survey demonstrates the VR rip current video game was generally effective in accurately portraying risk and demonstrating proper actions to take in an engaging and memorable way. Respondents to the Likert-scale questions indicated the VR simulation resulted in them feeling more prepared than not for a rip current and also that it was fairly immersive. Moreover, the results of choosing one of six brief statements clearly showed the video game was helpful given that ov...

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors have nothing to disclose.

Acknowledgements

This publication is a product resulting from NYSG project R/CHD-14 funded under award NA18OAR4170096 from the National Sea Grant College Program of the U.S. Department of Commerce’s National Oceanic and Atmospheric Administration, to the Research Foundation for State University of New York on behalf of New York Sea Grant. The statements, findings, conclusions, views and recommendations are those of the author(s) and do not necessarily reflect the views of any of those organizations.

Access restricted. Please log in or start a trial to view this content.

Materials

NameCompanyCatalog NumberComments
Dell 17.3" Alienware 17 R5 LaptopDellPC for virtual reality development
Oculus Rift SOculusVirtual reality headset

References

  1. Rip Current Science. National Weather Service. , Available from: https://www.weather.gov/safety/ripcurrent-science (2020).
  2. Moulton, M., Dusek, G., Elgar, S., Raubenheimer, B. Comparison of rip current hazard likelihood forecasts with observed rip current speeds. Weather and Forecasting. 32 (4), 1659-1666 (2017).
  3. Weather Related Fatality and Injury Statistics. National Weather Service. , Available from: https://www.weather.gov/hazstat (2020).
  4. Gensini, V. A., Ashley, W. S. An examination of rip current fatalities in the United States. Natural Hazards. 54 (1), 159-175 (2010).
  5. Houser, C., et al. Public perceptions of a rip current hazard education program: "Break the Grip of the Rip!". Natural Hazards and Earth System Sciences. 17 (7), 1003(2017).
  6. Doelp, M. B., Puleo, J. A., Cowan, P., Arford-Granholm, M. Delaware coast Delaware surf zone injury demographics. The American Journal of Emergency Medicine. 36 (8), 1372-1379 (2018).
  7. Castelle, B., et al. Surf zone hazards and injuries on beaches in SW France. Natural Hazards. 93 (3), 1317-1335 (2018).
  8. Brannstrom, C., Trimble, S., Santos, A., Brown, H. L., Houser, C. Perception of the rip current hazard on Galveston Island and North Padre Island, Texas, USA. Natural Hazards. 72 (2), 1123-1138 (2014).
  9. Caldwell, N., Houser, C., Meyer-Arendt, K. Ability of beach users to identify rip currents at Pensacola Beach, Florida. Natural Hazards. 68 (20), 1041-1056 (2013).
  10. Fallon, K., Lai, Q., Leatherman, S. Rip current literacy of beachgoers at Miami Beach, Florida. Natural Hazards. 90 (2), 601-621 (2018).
  11. Berg, L. P., Vance, J. M. Industry use of virtual reality in product design and manufacturing: a survey. Virtual Reality. 21 (1), 1-17 (2017).
  12. Sundar, S. S., Kang, J., Oprean, D. Being there in the midst of the story: how immersive journalism affects our perceptions and cognitions. Cyberpsychology, Behavior, and Social Networking. 20 (11), 672-682 (2017).
  13. Dede, C. Immersive interfaces for engagement and learning. Science. 323 (5910), 66-69 (2009).
  14. Klippel, A., et al. The value of being there: toward a science of immersive virtual field trips. Virtual Reality. , 1-18 (2019).
  15. Bernhardt, J., et al. Communicating Hurricane Risk with Virtual Reality: A Pilot Project. Bulletin of the American Meteorological Society. 100 (10), 1897-1902 (2019).
  16. "Break the Grip of the Rip" brochure. National Weather Service. , Available from: https://www.weather.gov/media/safety/rip/rip_brochure_51419b.pdf (2019).
  17. Rip Current Survival Guide transcript. National Oceanic and Atmospheric Administration. , Available from: https://oceantoday.noaa.gov/ripcurrentfeature/ (2016).
  18. McCarroll, R. J., et al. Evaluation of swimmer-based rip current escape strategies. Natural Hazards. 71 (3), 1821-1846 (2014).
  19. Unity User Manual. , Available from: https://docs.unity3d.com/Manual/2Dor3D.html (2019).
  20. Unity Asset Store. , Available from: https://assetstore.unity.com/ (2020).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Explore More Articles

Virtual RealityVR Video GameRip CurrentsBeach HazardSimulationInteractive LearningUnity Asset Store3D ProjectGame DevelopmentPlayer PrefabBuoy Test SceneUser InterfaceC ScriptingAnimation ControllerOcean Waves AudioImmersive Experience

This article has been published

Video Coming Soon

JoVE Logo

Privacy

Terms of Use

Policies

Research

Education

ABOUT JoVE

Copyright © 2025 MyJoVE Corporation. All rights reserved