PickedX,Y,Z

Blitz3D Forums/Blitz3D Programming/PickedX,Y,Z

Jeroen(Posted 2004) [#1]
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.


big10p(Posted 2004) [#2]
There's this in the code archives:

http://www.blitzbasic.com/codearcs/codearcs.php?code=17

Any use?


Jeroen(Posted 2004) [#3]
yes, but this is not what I want.
I want to make my own object control system using Maya handles, not a prefab script to avoid the whole problem


Jeroen(Posted 2004) [#4]
TFormVector was the answer