gamophyte on 17/3/2019 at 06:50
Inline Image:
https://i.imgur.com/0avnsLu.pngDoes anyone know a clever way to avoid flinders resting on small edges like this?
The red line is the top of the physics of the window and I don't want the flinders from the upper broken out window to rest on it.
Thanks!
john9818a on 17/3/2019 at 07:41
In the flinderize link data you can set the flinders to scatter beyond the window.
gamophyte on 17/3/2019 at 08:04
Sorry I should specify, I have already found the inpulse number that makes the glass fall right. Any more, with spread checked, yes it can launch it away more. But... some hit the top and fall back down, and for those that don't, look nothing like breaking glass; fast spinning explosion, overdone. So the solution I'm hoping for is likely to be about the flinder object props. I will poke around more, maybe I can make them slippy so they can't be on that ledge.
I see also that the flinder bounding boxes looks like small little cubes, and I haven't tried to make them smaller yet. I was weary of that because maybe they are like that to be good as being flinders. More hours poking around, here we go.
gamophyte on 18/3/2019 at 00:26
Okay so the best solution I have, which works 95% of the time and I will have to "oh well" the 5%, is using a higher elasticity and sub-models. Now they are basically bouncy barbels in spirit, and it actually make the glass look better and more splashy. Their density is still considerable so they don't look too light. But yeah all and all, ot significantly lowered the chances of the shards being stable/laying on the edge.
gigagooga on 18/3/2019 at 08:31
Maybe you could make invisible small slope above that window physic, which will make them slide off?
Yandros on 18/3/2019 at 13:51
You could use a custom stim on the window object which destroys shards on contact. So you lose a shard but don't have any ending up like that.
gamophyte on 18/3/2019 at 14:14
Quote Posted by Yandros
You could use a custom stim on the window object which destroys shards on contact. So you lose a shard but don't have any ending up like that.
Hey now yer talkin. That would make sense too, will all that heavy glass hitting it already half broken, it should break too, if hit. Nice. I think this is the way to go.
ZylonBane on 18/3/2019 at 17:29
A lesser option would be to disable physics collisions with objects on the flinders, so they'd only come to rest on terrain. I forget the exact property to do this.
Yandros on 18/3/2019 at 18:28
Oh crap if there is such a property, that's the way to go. I didn't realize there was one.
gamophyte on 18/3/2019 at 20:06
Thanks to you both.
I did think of that - I believe you set Type to none to quickly turn off physics... whoops, that was to hide it, I meant collision type: None.
It was last solution though, if I could help it. I like how they splash all about and stay in the world, whilst not clipping into the stone rail or it's own windowsill. I love the sub-model approach, and with it, they rarely get stuck. And so, it would be great for those time it does, if it broke the bottom window.
I will play around with it tonight. I imagine if they touch at all it will bust, so I may try to do something where it has to come to a rest before it busts. Fast enough for you the player not to notice, but a come-to-rest so it's not super temperamental, ie avoid one little shard blowing out the bottom window.
PS. this stuff is fun, I'm already thinking how the larger flinder pieces can flinder again into smaller pieces when they land. I promise not to spend that much more time on it haha. And don't worry there's only about 3 windows in the whole place. Wait... that makes me think.... If I just flinder the flinders, they'd explode on the ledge so they'd never get caught. I'll put a pin in it, I may not have the object count free to do that.