Quick and dirty example. This aligns the bottom of the cone to the nearest polygon of the sphere. (The sphere is rotated to emphasise the fact that the AlignToVector stuff is actually doing something).
Graphics3D 800,600 camera = CreateCamera() light = CreateLight(2) MoveEntity light,-10,10,-10 sphere = CreateSphere() EntityPickMode sphere,2 cone = CreateCone() MoveEntity cone,5,0,0 MoveEntity camera,0,0,-10 While Not KeyDown(1) TurnEntity sphere,0,1,0 LinePick EntityX(cone),EntityY(cone),EntityZ(cone),-10,0,0 NX# = PickedNX() NY# = PickedNY() NZ# = PickedNZ() AlignToVector cone,nx,ny,nz,2,0.1 UpdateWorld() RenderWorld() Flip Wend