Hi!
I am making a simple "object move" script where you can select an object using the mouse, drag,rotate or scale it using "handles" like in Maya.
But ATM it sucks :-)
I have some problems with Picked, or let's say, I'm looking for an alternative.
Basicly I do this:
1. if mouseclicked, look in a TYPE which object it is and use that object to move around
2. While holding the left mouse button, move the selected object using PickedX,Y,Z and CameraProject.
Now, when I drag my object further away in 3D space, it becomes smaller, and my cursor gets "off" the object, and PickedX,Y,Z won't return any coordinates. From a users' perspective, rather frustrating. The same happens when I drag my object and move my mouse reasonably fast; I lose 'focus'.
The problem is that LinePick and Camerapick always return an entity. I just want to use CameraProject on "mouse click" (to return an entity) and on "mouse hold" return projected coordinates (X,Y,Z) wheter I'm actually over an object or not.
Is this possible?
Thank you.
I am making a simple "object move" script where you can select an object using the mouse, drag,rotate or scale it using "handles" like in Maya.
But ATM it sucks :-)
I have some problems with Picked, or let's say, I'm looking for an alternative.
Basicly I do this:
1. if mouseclicked, look in a TYPE which object it is and use that object to move around
2. While holding the left mouse button, move the selected object using PickedX,Y,Z and CameraProject.
Now, when I drag my object further away in 3D space, it becomes smaller, and my cursor gets "off" the object, and PickedX,Y,Z won't return any coordinates. From a users' perspective, rather frustrating. The same happens when I drag my object and move my mouse reasonably fast; I lose 'focus'.
The problem is that LinePick and Camerapick always return an entity. I just want to use CameraProject on "mouse click" (to return an entity) and on "mouse hold" return projected coordinates (X,Y,Z) wheter I'm actually over an object or not.
Is this possible?
Thank you.