[Closed] particles inherit birth positions transform
I want to spawn particles from the ‘Position of a picked object’ but also have the spawned particles inherit the transforms of that ‘picked object’
I’ve tried a few different methods of using the lock bond/ position script/ birth script none which seem to work. Hoping someone can take a look at the file and help me out.
The main problem I’m having is just getting the spawned particles to inherit the orientation of the Position Object at spawn time.
Thanks
I’m not sure if I understood right, but check this file.
hope that helps
[edit]
sorry I’m getting an error
almost working
It has multiple boxes on top of another.
on Proceed pCont do
(
count = pCont.NumParticles()
myRot = at time (currentTime) (leader.rotation as EulerAngles)
myRot = [myRot.x, myRot.y, myRot.y]
for i in 1 to count where pCont.isParticleNew i do
(
pCont.particleIndex = i
pCont.setParticleTM i $leader.transform
)
)
Sorry, for some reason even after restarting my 3dsMax, is was keeping the old buggy file. Anyway, I think I fixed it.
We got the same answer!
nice.
Why do multiple boxes appear ontop of each other. I think it may have to do with the substepping.
You can change the spawn By Travel Distance to be smaller or larger and the position of the spawned particles doesn’t change…?
ok so if you comment out the line ‘pCont.setParticleTM i $leader.transform’
Particles space correct.
So the solution is to just manipulate the orientation of the spawned particle and not the position.
Sorry for the delay I just got home…
that seems to be work
on Proceed pCont do
(
count = pCont.NumParticles()
for i in 1 to count where pCont.isParticleNew i do
(
myTM = $leader.transform
myTM.pos = pCont.getParticlePosition i
pCont.setParticleTM i myTM
)
)