Probably the most advanced dirt sweeping script?

After 6 hours, i consider the “meat” of the script to be done:

Spawning device has an unique ID

It runs a timer to add more dirt on the floor , runs a limited sensor for counting the dirt and stop adding when maximum is reached.

Each dirt spawned get the unique id and use it to rename itself.

Each dirt patch use sensor to find the dirt generator, read the configuration values from the generator name

Set the generator position as it’s origin and move itself at a random place in the generator’s declared radius.

When swept, the dirt patch is actually moved on the floor, and will refuse a move that will put it out of range of the generator control sensor.

Dirt rotate itself according to the angle it was swept.

Dirt assume random variation in “thickness” to reduce Z fighting in complanar faces.

Dirt suicide if it lose track of it’s generator.

That’s a lot for a patch of dirt 😀

Snapshot_016

Leave a Reply

Kyrah Abattoir
Creator of BDSM and fetish content in Second Life since 2004.

Seasoned 3D artist and programmer, aspiring video game creator.

November 2009
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
Archives