Search Unity

Simulating wave interference in Unity

Discussion in 'Physics' started by tklightningfast, Jun 17, 2019.

  1. tklightningfast

    tklightningfast

    Joined:
    Jun 17, 2019
    Posts:
    1
    Hey,

    I'm new to Unity and I've been trying to build a game that visualizes wave constructive and destructive interference. The vision is to have two boxes that are shooting out 2D waves as visualized in the image and the user places them where they desire. If they happen to intersect, they create an interference pattern similar to the real world. I've displayed this in the second image below. The question I wanted to ask is if any of you have needed a similar functionality and how you implemented it. I tried creating a trail renderer with a collider but I couldn't get it to work quite right. Additionally, that required me sending out little particles occasionally that left a sine wave behind them; I would much rather simulate the whole wave as one object if possible.

    int5.gif

    Screen Shot 2019-06-17 at 1.02.33 PM.png
     
  2. Maeslezo

    Maeslezo

    Joined:
    Jun 16, 2015
    Posts:
    331