Rob
Forum Moderator

OK, so the code without trying to find the particle location works? Look at what you changed/added and see what that interacts with. Turn off the new stuff and slowly turn it on again, ie use a constant rather than an equation to do whatever etc.