Dear All,
I have made an event in the particle collision editor. The types and the particle dies are not checked. I added my own script to the event procedure, which is like this:
global proc myCollosion(string $particleObject, int $particleId, string $geometryObject) {
print ("Collided with" + $geometryObject + "\n\n");
print ($particleId + "\n");
print ($particleObject + "\n");
vector $pos[]=getParticleAttr("-at","position", "$particleObject.pt[$particleId]");
}
I would like to make my own split at the collision location and I can not determine the location.
It always said: Invalid object name: $particleObject.pt[$particleId]. However the print functions work. If I understand well there is a $particleObject and it has an array which stores its particleid-s. What I don't know how can I reach this particle's attributes?
Any suggestions are appreciated!
Thank you very much