PDA

View Full Version : ParticleFlow fracture script


loran
09-22-2006, 07:18 AM
Hi there,
I meet problems by using the fractur script for particle flow twice in a scene. Maybe some coders could help me.

I blast a wall by this script and it works fine. I create another PF source the same way to blast the roof and problems began. I think the script have to be modify to select is own PF source and not every particles in the scene.
help wanted!!





on ChannelsUsed pCont do
(
pCont.useAge = true

pCont.useTM = true
pCont.useShape = true
)

on Init pCont do
(
global ChunksArray = $bricks* as array
)

on Proceed pCont do
(
t = pCont.getTimeStart() as float

if t < 0 do
(
NumChunks = ChunksArray.count
for i = 1 to NumChunks do
(
pCont.AddParticle()
pCont.particleIndex = pCont.NumParticles()
pCont.particleAge = 0
pCont.particleTM = ChunksArray[i].transform
pCont.particleShape = ChunksArray[i].mesh
)
)
)

on Release pCont do
(

)

CGTalk Moderation
09-22-2006, 07:18 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.