you could set the pivots name to have something to do with the object it represents, for example from what I can tell you are using types for somrthing to do with the object, so if you name the pivot the Handle value of the type that correspondes to the entity that the afore mentioned pivot belongs.
for example
now you have the type associated with the pivot, and its ship or whatever.
If I have completely missed the plot let me know :)
for example
type ship field X#,Y,Z# field Someotherstuff.... field Entity end type .... player.ship=new ship shiphandle = handle(player) pivot=createpivot() entityname pivot,shiphandle ; then when that pivot may have collided, you can do this. s.ship=object.ship(entityname(pivot)
now you have the type associated with the pivot, and its ship or whatever.
If I have completely missed the plot let me know :)