Haydenmango Posted November 19, 2014 Share Posted November 19, 2014 I am running into invisible barriers while playing my game. I checked the area around where the invisible barriers show up but there is nothing there. I tried hiding all objects near the invisible barrier to see if they were the cause but it made no difference. I tried using Debug Physics Mode but the physics for the invisible barrier doesn't show. I can't seem to find any reason for why this is happening. I don't want to post my map to the public but I can send it to Josh if it helps. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
nick.ace Posted November 19, 2014 Share Posted November 19, 2014 I encountered this issue in the past. It looks like on the left that some scene objects are parented to other objects. Could this be the issue? From my experience, whenever you parent a scene object with physics to another object with physics, the child object inherits some of the physics characteristics of the parent like shape for instance, but this relationship isn't displayed using debug physics. Anyway, do you know if this is what's causing this issue? Do you parent objects with physics to other objects with different physics shapes/sizes? Link to comment Share on other sites More sharing options...
Haydenmango Posted November 19, 2014 Author Share Posted November 19, 2014 I thought that would be the issue at first as well but even after hiding every object in that corner the invisible barrier is still there. The stairs and railings have children but the parents have the physics shape. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Haydenmango Posted November 19, 2014 Author Share Posted November 19, 2014 Ok so I went through all the objects in my world and found that some of my objects had children with physics shapes, after changing those objects to make the parents have the physics shape the invisible barriers went away! That makes me assume that when the game started the parent actually inherited its childs physics shape which led to giant invisible barriers. Thanks nick.ace! So it isn't a bug but it is something to look out for! Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted November 19, 2014 Share Posted November 19, 2014 The physics should still be visible though... My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Haydenmango Posted November 19, 2014 Author Share Posted November 19, 2014 The physics were not visible in my case. If you want to test it this happened when I gave a child a physics shape while the parent didn't have a physics shape. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted November 19, 2014 Share Posted November 19, 2014 Can you post a small example? My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Haydenmango Posted November 19, 2014 Author Share Posted November 19, 2014 Yeah give me a few minutes and I'll post it here. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Haydenmango Posted November 19, 2014 Author Share Posted November 19, 2014 I found that the issue only really occurs with this model so here you go - example.zip You can place the map and the model into the MyGame Project and it should run. Walk towards the model and you will hit the invisible barrier, click P to turn on Debug Physics Mode and you won't see the invisible barrier. Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted November 20, 2014 Share Posted November 20, 2014 Okay, I made a small change and it should work now, even in odd situations like this. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts