drop-table-lol / BlockRunner

physics based runner game
2 stars 1 forks source link

Obstacle/Player destruction #20

Closed drop-table-lol closed 7 years ago

drop-table-lol commented 7 years ago

Currently we spawn in a prefab of playerremains Instead, we should write a function onDestroy() which accounts for the objects mass, size, and force of collision which will spawn a randomizedrange of smaller pieces flying off in different directions. It'll look waaay cooler, and we can grab the color for these cubes based on the parent objects color.

drop-table-lol commented 7 years ago

Still Spawn in prefab, but corrected color