of     1   

HadesDude
#161558962Monday, May 04, 2015 9:48 PM GMT

Hey, So I'm trying to figure out a way to make it look like a block has shattered into pieces. I've figured out block sizing and stuff but I ran into an issue. My first issue is that I'm giving the "shattered" blocks the same CFrame as the block being shattered. However, I want to be able to position the fragments so they don't look like some random explosion. Would anyone be able to help me out with that? Just to clarify I only need help with positioning.
Dill77
#161560951Monday, May 04, 2015 10:19 PM GMT

if thats going to be a reoccurring aspect of your game then I don't recommend it, the process is very tedious and cpu intensive to anyone playing the game, you can however create the illusion with a repetitive yet credible peace of debris.
distalDigitPhalanx
#161562120Monday, May 04, 2015 10:37 PM GMT

You can do this using some pretty complicated maths. That sounds incredibly fun, but that's probably not something you want to do. Additionally, it might be resource costly. Instead, I suggest using some pre-made shatter patters. E.g. lets say that you have a 5x5 window you want to shatter. You make a simple window pane out of 1 part. Then, you make another window pane, but out of many more parts, and give it a shattered look. When the window is shot (or whatever), you replace the window pane with the shattered model. Then, you give each shard a direction velocity, and a small random velocity. That way, all the shards will fly in the direction of the bullet, but still fly differently. If you don't want the same pattern to appear at every window, have multiple shattered windows for each window size, and choose one randomly every time.
HadesDude
#161562160Monday, May 04, 2015 10:37 PM GMT

Alright, I think I'll follow your advice.
distalDigitPhalanx
#161562180Monday, May 04, 2015 10:38 PM GMT

Just a disclaimer, I've never done this before. I've no idea if it's practical.

    of     1