currentSelection = CameraPick(camera,MouseX(),MouseY()) PositionEntity currentSelection , PickedX#() , PickedY#(), PickedZ#()
With the code above, I can position an object in 3D space, using the mosue coordinates. No big deal.
But here is the problem. (I hope I can explain it right, it's hard)
When I click on the edges of the object, I do not want the object to move so that my mouse is in the middle point of the object. I want my camerapick position to be the basepoint of my selected object.
Imagine a mesh of a big truck. If I click on a wheel, the truck will be moved down, and my mesh will be centered on the camerapick x,y,z coordinates. I don't want this, I want the truck wheel to be the basepoint of moving.
Can someone shine a light on this?
Thanks