Browse Search Popular Register Upload Rules User list Login:
Search:
destructible boxes

Image:
screenshot of the scene

Author: AverageCoder

Group: Default

Filesize: 0.59 MB

Date added: 2024-06-15

Rating: 5.6

Downloads: 7101

Views: 642

Comments: 5

Ratings: 2

Times favored: 0

Made with: Algodoo v2.2.0b

Tags:

Scene tag

The code works for everything that is a box
the script accounts for angle and size so you will not have to worry about it

variables and what they do :

_rotate - function used for angles, can be used for other projects (im planning for a 2nd 3d renderer attempt)

_d - how many divisions or cuts are made

_divs - a counter for how many divisions there are

_MaxDivs - a maximum for how many divisions can be done

_break - an executable for dividing boxes

_strength - the maximum damage it can take before breaking

_weakening - how much stronger or weaker it gets every division

_able - useless variable I didnt get rid of

I made this scene mostly to show a unused variable named soundGain and what you can do with it
Sound gain seems to be part of what should have been sounds in algodoo
upon a collision, e as in event, has a property that is basically the intensity of the collision
one way to use this is for breakables such as these boxes I made
Or another way. for the next bloody ragdoll



I might try to investigate how algodoos sound could be used

If you want to see it as a number just paste

(e)=>{text = e.soundGain + ""}

Into OnCollide


You can see it gets the job done if you want to measure intensity without doing it yourself.
Please log in to rate this scene
edit
Similar scenes
Title: Destuctible shed V 2.0
Rating: 7.1177
Filesize: 336.77 kB
Downloads: 373
Comments: 4
Ratings: 17
Date added: 2009/02/24 20:31:27
Made with: Phun
Rating: rated 7.1
download
Title: Smash!
Rating: 5
Filesize: 30.55 kB
Downloads: 312
Comments: 0
Ratings: 1
Date added: 2009/07/17 08:18:44
Made with: Phun
Rating: rated 5
download
Title: Destructible shed
Rating: 3.75
Filesize: 112.58 kB
Downloads: 678
Comments: 2
Ratings: 4
Date added: 2009/02/19 21:05:16
Made with: Phun
Rating: rated 3.8
download
Title: Very Destructible Mobile Home
Rating: 5
Filesize: 7.76 MB
Downloads: 3862
Comments: 0
Ratings: 1
Date added: 2019/05/05 20:28:35
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: 1000 boxes vs 10 boxes
Rating: 5
Filesize: 45.92 kB
Downloads: 1019
Comments: 0
Ratings: 1
Date added: 2023/08/12 01:29:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Destructible House With Electricity!
Rating: 5.625
Filesize: 0.56 MB
Downloads: 6658
Comments: 4
Ratings: 2
Date added: 2009/10/23 04:22:50
Made with: Algodoo before v1.8.5
Rating: rated 5.6
download
Nice work. I suggest putting the hammer slightly unbalanced when starting the scene, else nothing happens (and no instructions) when the scene is started.
Nice job. also why are the boxes dividing a l o t

edit: While writing this, I realized that the division was intended z
How many times I have opened this scene without being met with a blank screen: 1
the scene just shows me a empty one?
everytime i zoom in, they automatically fall apart