Rotate camera
by John Peter · in Torque Game Engine · 12/02/2010 (5:23 pm) · 8 replies
Hi All
I am using TGE 1.5.2. In My Project when the mouse is clicked the person should move and leaves the mouse the person stops.In Right mouse i have to rotate the camera. How can i do it?
Could any one help me with proper link or idea?
Thanks in Advance
Peter John
I am using TGE 1.5.2. In My Project when the mouse is clicked the person should move and leaves the mouse the person stops.In Right mouse i have to rotate the camera. How can i do it?
Could any one help me with proper link or idea?
Thanks in Advance
Peter John
About the author
#2
When i press the left mouse button the player should walk . How can i do it.
12/02/2010 (6:38 pm)
Hello Ivan Thank you for your reply . I am using demo version.When i press the left mouse button the player should walk . How can i do it.
#3
Try to set $mvForwardAction to 1.0 when the left mouse button is pressed.
When released you should set 0.
12/02/2010 (6:52 pm)
Without the code this can be tricky.Try to set $mvForwardAction to 1.0 when the left mouse button is pressed.
When released you should set 0.
#4
12/02/2010 (10:32 pm)
@ivan thank you for your reply . But it is not working. it is an old version. Could any one give me a proper link for to rotate the camera with left mouse button + person should move and leave while pressing,releasing the mouse.
#5
if you just using the demo version, why not just use the T3D demo version?
you'll find things a little bit easier to do
12/03/2010 (12:06 am)
hey John,if you just using the demo version, why not just use the T3D demo version?
you'll find things a little bit easier to do
#6
12/03/2010 (4:43 am)
There's a good point-and-click movement tutorial in the T3D docs, as far as I remember. It should be mostly applicable to TGE as well. The key is to use an AIPlayer as the player, and use setMoveDestination.Quote:why not just use the T3D demo version?Editor restriction?
#7
Could any one help me
How can i rotate camera with right mouse button.By pressing f11 we can rotate camera. How can i do it in run mode.
12/03/2010 (7:09 pm)
@hi all Thanks all for your reply. project should run without without graphics card.So i am using tge 1.5.2.Could any one help me
How can i rotate camera with right mouse button.By pressing f11 we can rotate camera. How can i do it in run mode.
#8
I just took a look at the the code (TGE 1.5.2) and it seems that the euler rotation is enabled only in Editing_Mission mode (F11).
Currently you need the source code to change that.
12/03/2010 (7:18 pm)
@JohnI just took a look at the the code (TGE 1.5.2) and it seems that the euler rotation is enabled only in Editing_Mission mode (F11).
Currently you need the source code to change that.
Torque Owner Ivan Mandzhukov
Liman3D
How did you get TGE 1.5.2 ?
This engine is available only for old TGE (TGEA) owners (afaik).
On your question - you can enable the euler rotation when the right mouse button is pressed.