Hi,
I have two questions about nParticle system:
I'm trying to make an animation in which hundreds of boxes are crawling on a surface towards one direction, then after reaching a certain position, they fly up to attach to a goal. The boxes are self-colliding to avoid penetration.
For the first part where the boxes are crawling, I'm using nparticle with collide and self-collide turned on. Then I created boxes as instances. A terrain was made passive collider to hold them. I then applied a gravity and a volume axis force to drive the particles to flow to desired direction. I get the boxes pointing to the right direction by changing instance's aiming direction to velocity.
Here is the first question: How can I aim the instances's up axis to it's colliding surface normal? The closest approach I could think of is to use the "closestPointToMesh" node, but I cannot figure how to do it. Plus, this node only allows for one Mesh. I will have to transfer them from one mesh to another. Please find the attached scene for reference.
For the second part, I want those particles to fly to the goal object only after they reach out of the volume force area. I know there's a Goal PP function that I could use to randomize the PP goal weight, but is there a way to change the weight based on their distance to the goal?
Best,
Boyang