Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGL Physics Issue

Discussion in 'Physics' started by g0tNoodles, Oct 11, 2015.

  1. g0tNoodles

    g0tNoodles

    Joined:
    Nov 28, 2010
    Posts:
    193
    Hello,

    (I have posted this in the WebGL thread but no one has been able to answer it seems).

    I recently built a WebGL test to see how my app performed. Everything was ok until the game tried to work with colliders. I have a game area which, when my ball object hits it, the game is over and should go on to the game over screen.

    In the editor this works fine. However, in the web build the ball just bounces back and doesn't detect that the game area has been hit by the ball. I haven't changed anything with regards to the objects so am I missing something when it comes to Physics and WebGL or it may be a bug but I can't see any other posts about it?

    I am running 5.2.1f1 Personal and Chrome Version 45.0.2454.101 m. This issue also happens in Firefox.

    This is the link to the game: https://dl.dropboxusercontent.com/u/31186240/WebGLBounce/index.html

    Thanks
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Sounds like a bug to me. Did you try to create a simple reproduction? Which method are you using to detect the collision?