Picking Pointer
Blitz3D Forums/Blitz3D Programming/Picking Pointer
| ||
Ok, i am playing around with types and would like to know, after creating an object with my type, how can i go about re pointing the pointer to it after picking it from the 3d world. ok that might have been a tounge twister, but i am using a simple camera picking with the mouse to return the objects name, so i can reposition the selected object. But it seems to be returning the memory address (or a long number), so how can i repoint my pointer to that object so i can change its paramaters? |
| ||
http://www.blitzcoder.com/cgi-bin/code/code_listentries.pl?id=UD take a look at the object and handle entry. |
| ||
the object and handle stuff is for after you understand what you are doing, you need: Type object Field handle End type o.object=new object o\handle=createcube() for o.object = each object if o\handle=pickedentity() moveentity o\handle,1,0,0 endif next |
| ||
Thanks Slenkar |