#Cube inside cube

11 messages · Page 1 of 1 (latest)

calm violet
oblique crest
#

Oh this is cool! How did you achieve this effect?

#

@calm violet

calm violet
#

@oblique crest The gist of it is that I have a box collider define the boundaries. Then I find out how many smaller cubes can fit into this rectangular prism on each axis. Afterward I just spawn each cube at each position filling the prism. Then doing a simple for loop you can set the scale of each smaller cube based off the distance of your object you are referencing to. Currently at work I can go into more detail if you want later!

oblique crest
#

Thats EXACTLY WHAT I THOUGHT

#

OKAY

#

COOL
LOL

calm violet
#

Also put on a outline toon shader at the end for fun

oblique crest
#

🙂