about mouse movement implement?
by Tsai Ming Hung · in Torque 3D Professional · 10/30/2011 (8:36 am) · 15 replies
hi,everyone,I want to ask the question,but my Englsih is very poor...
I want someone help me to slove the problem of mouse movement.
I don't have the idea,and search some douctment,still have on idea...
so,is anyone can teach me how to modify code and implement this idea.Thanks~
I want someone help me to slove the problem of mouse movement.
I don't have the idea,and search some douctment,still have on idea...
so,is anyone can teach me how to modify code and implement this idea.Thanks~
About the author
#2
What do you mean by "mouse movement?" If you move your mouse, the cursor moves - or the camera moves if you're in the PlayGUI.
11/04/2011 (9:04 am)
What is the question? I'm sure someone can help you, but if we can't tell what you are asking we can't answer.What do you mean by "mouse movement?" If you move your mouse, the cursor moves - or the camera moves if you're in the PlayGUI.
#3
11/04/2011 (12:28 pm)
I assume, click on a location in the world to move to it. (Like in many MMOs...)
#4
I'm also thinking about trying to get the "WoW" driving system down in T3D - hold both buttons to move forward, steer with mouse - but though I have seen many forum threads on it I can't recall anyone getting it working.
11/04/2011 (12:42 pm)
Oh, if that's all - this thread talks about the RTS Prototype and my review of it back on September 16th of this year. Give it a shot and see how it works for you. If you must have a Player object instead of an AIPlayer you might have issues - I think it's workable with some tweaking, maybe finding a way to work with the control object directly.I'm also thinking about trying to get the "WoW" driving system down in T3D - hold both buttons to move forward, steer with mouse - but though I have seen many forum threads on it I can't recall anyone getting it working.
#5
11/04/2011 (12:53 pm)
The WoW-style (LMB+RMB) movement would be a nice feature, particularly if there were a RPG prototype/tutorial created for T3D.
#6
11/04/2011 (3:43 pm)
I hate WOW style controls! So hopefully the guy is looking for direction similar to what is found in the RTS Prototype in the documentation.
#7
11/04/2011 (4:00 pm)
WoW-style controls are quite handy for when you're trying to run around and eat a sandwich at the same time... =D
#8
11/04/2011 (4:05 pm)
Just remembered that there was a wow-style rpg and/or rts interaction Resource(s) from a few years back somewhere in the Resources....
#9
11/04/2011 (5:24 pm)
WoW-style? Oh you mean EQ-style WoW wasn't even 2nd to adopt this control style Everquest had it for years before WoW came out :)
#10
11/04/2011 (7:25 pm)
I don't like either game... so, moot point to me. I want Mechwarrior 2 style controls! 16-button joystick w/throttle + 4 button trackball + keyboard! You'll get shot if you try eating a sandwich while piloting....
#11
www.garagegames.com/community/resource/view/11152/5
11/05/2011 (5:17 am)
I haven't done anything with it, but maybe this is the one you are referring to: www.garagegames.com/community/resource/view/11152/5
#12
11/05/2011 (9:47 am)
thans all^^,you all so kind~I search some about toggle camera with right button of mouse now,and when use orbitcamera the mousezoom is no effect.
#13
function onLeftMouseLook( %val ) {
if (%val) {
hideCursor();
moveMap.bind(mouse,xaxis,yaw);
moveMap.bind(mouse,yaxis,pitch);
} else {
showCursor();
}
}
globalActionMap.bind( mouse0, button0, onLeftMouseLook );
thanks from the thread and authors
http://www.garagegames.com/community/forums/viewthread/111587
11/05/2011 (6:06 pm)
I had try the code add to RTSProtype ,it's can use mouse left click to move,and mouse right click to rotate camera in orbitCamera mode.function onLeftMouseLook( %val ) {
if (%val) {
hideCursor();
moveMap.bind(mouse,xaxis,yaw);
moveMap.bind(mouse,yaxis,pitch);
} else {
showCursor();
}
}
globalActionMap.bind( mouse0, button0, onLeftMouseLook );
thanks from the thread and authors
http://www.garagegames.com/community/forums/viewthread/111587
#14
11/17/2011 (3:47 pm)
sorry,although solve the mouselook issue, but I have a new question now.How to limit pitch function angle?Because above method can rotate around player success,but I want the camera can limit in horizon up.How can I get $mvPitch angle?Thanks.
#15
11/18/2011 (3:54 am)
is anyone can answer me?
Torque 3D Owner Tsai Ming Hung