Game Development Community

Dragging Objects.

by Jacob S. · in Torque 3D Professional · 04/06/2010 (11:30 am) · 2 replies

I'm looking for a way of dragging objects (not Gui Controls) around with the mouse.

I've been browsing around for awhile now and I've not found a thread with a decent description of how to do this. I've found some that refer to guiEditorPalette and it's functions but they do not seem to be able to work with playGUI or any of the object types I've tried.

If someone could point me in the right direction, or knew of a resource/thread that I've missed it would be appreciated.

#1
04/06/2010 (4:30 pm)
Once place you can look is in the World Editor. Try to find the place where when you click on the widgets, you can move the object around freely. Then, if you need to you can constrain it to move only on the axis you want it to (XY, XZ, YZ, etc).

Also, you'll want to look up object selection such as Click n Pick or other stuff out there (the resources for those should port pretty easily to T3D, except for where some do selection boxes or whatever- but you can still port from DGL to GFX pretty easily too).

Hope that helps.
#2
04/07/2010 (10:23 am)
That's one of the issues, I can't seem to locate where they are playing with the widgets (in script at least).

Nor can I seem to get onMouseDragged commands working outside of the editors.