How do i code for clicking a 3d object?
Blitz3D Forums/Blitz3D Beginners Area/How do i code for clicking a 3d object?
| ||
i've been looking around and i cant find a code for clicking an object. any help is appreciated :D |
| ||
From the help screen: Samples > Blitz 3D Samples > mak > Pick > pick.bb |
| ||
thanks, i'll try that |
| ||
also, do you know how i could make it, while you're holding the right mouse button down (i know the code for that part), if you move the mouse right, left, up, down, etc., it will pivot the camera inversely?(i know the rotate about a pivot part, i just need help with the moving-the-mouse causing the camera to orbit part) |
| ||
Something like this should get you started ....YawRate# = mouseXspeed() * .5 PitchRate# = mouseYspeed() * .5 rotateentity PitchRate, YawRate , 0 movemouse graphicswidth()*.5, graphicsheight()*.5 You may want to store the mouse x,y position before you rotate so that you can re-position the cursor to where it was once you release the mouse button. Stevie |
| ||
thanks |