; Example on how to use array of types; to look up types with a extremly low lookup time.; By Rob Cummings and Frankie TaylorGraphics3D 640,480,0,2Type info Field name$,a,b,c,ball,stuff,mass#,physics,etcEnd TypeDim infoHandle.info(100) ;<-- arrays of types; Part I create a ball and some related information.now=MilliSecs()a.info=New infoaame$="bowling ball"amass#=0.9aall=CreateSphere()NameEntity aall,Handle(a) ; the type handle held within the entity name.;now all you do is grab the entity using any of Blitz's own commands.;This could be LinePicks, Collisions And so forth.;uncomment for a proper example within a collision framework;ent = EntityCollided(bat,collisiontype_ball)ent=aall ; testIf ent a.info = Object.info(EntityName(ent)) ; quickly retrieve source type Print aame$ Print amass#EndIfPrint "time:"+Str(MilliSecs()-now);Part II using a Array of Typesnow=MilliSecs()b.info=New infobame$="bowling ball2"bmass#=0.9ball=CreateSphere()infoHandle(2)=b ;we store our second type in the second array element ;now all you do is grab the entity accessing the array element.;This could be LinePicks, Collisions And so forth.;uncomment for a proper example within a collision framework;ent = EntityCollided(bat,collisiontype_ball)ent=ball ; testIf ent b.info = infoHandle.info(2) ; quickly retrieve source type Print bame$ Print bmass#EndIfPrint "time:"+Str(MilliSecs()-now)WaitKey()