This Object4D demo shows how to extend the THREE.Object3D class with properties to animate it.

Send all cubes to random locations with different speeds.

Locations are random (within a 200 unit bound). Speed is slightly random as well. Colors are random.

Methods and properties are in a new class called Object4D.

Add a single cube

Add 1000 cubes

Click on Random Targets repeatedly and they will eventually flock together

Notice that the speed of the cubes remains constant even if the frame rate changes

blog.tempt3d.com