ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
I think you need random radius and angle rotation.
Pseudo code (not tetsed):
thePivot = [0,0,150]
theRadius = 300
for i = 1 to 100 do(
r = random 0 theRadius
p = Point pos:[0,0,r]
about thePivot (
rotate p (random -9090) x_azis
rotate p (random -9090) y_azis
rotate p (random -9090) z_azis
))
Let me know is this helps at all ;)
Hmm... or maybe the next is better?...
thePivot = [0,0,150]
theRadius = 300
p = undefined
for i = 1 to 100 do(
r = random 0 theRadius
in coordsys thePivot (p = Point pos:[0,0,r])
about thePivot (
rotate p (random -9090) x_azis
rotate p (random -9090) y_azis
rotate p (random -9090) z_azis
))
You can check RTTAssist sours code. I'v developed the explode function that explode objects in a spherical volume, but not randomly. May be you can modify the code to fit your needs. :)
Comments
Hi Br0t
I think you need random radius and angle rotation.
Pseudo code (not tetsed):
Let me know is this helps at all ;)
Hmm... or maybe the next is better?...
my recent MAXScripts RSS (archive here)
You can check RTTAssist sours
You can check RTTAssist sours code. I'v developed the explode function that explode objects in a spherical volume, but not randomly. May be you can modify the code to fit your needs. :)
Tools and Scripts for Autodesk 3dsMax