How to set locations and orientations of paticles in particle system every frame?

[TABLE=“width: 700”]

		 			I want to use particle system to simulate insects, and I have my own algorithm to update the location and orientation of insect meshes.
		I don't find the interface to allow me to do that.
		Can someone teach me how? Or is there a better way than particle system?
		Thank you very much.