Need help with camera (treat me like a noob)
by Muffinman8him · in General Discussion · 08/30/2010 (6:02 am) · 3 replies
Okay, I was hoping someone could help me figure out how to do something. No matter what I typed or where I searched I couldn't find anything leading to useful information on how to manipulate cameras in torque. All I want to do is make it when my mission loads, the camera is not attached to anything and is placed at a certain spot where it just sits doing nothing, until the player clicks a certain button in which case it will cause the camera to move a little distance forward.
So when the mission loads, the player is pretty much floating like they do in observer mode.... but they can't move around and it moves how I want it to move.
Could this be achieved in the camera.cs file? I could really use someones help how to go about doing this. Just treat me like a complete noob.... because I pretty much am.
So when the mission loads, the player is pretty much floating like they do in observer mode.... but they can't move around and it moves how I want it to move.
Could this be achieved in the camera.cs file? I could really use someones help how to go about doing this. Just treat me like a complete noob.... because I pretty much am.
#2
At the moment, I have it so when my map starts the camera is where I want it and unattached from any player models. I just need it now so the camera isn't controlable except for when I press a certain button on the GUI.
Thanks for the help so far Thomas! :D
08/30/2010 (10:33 pm)
Okay, I found it and I've managed to unhook the camera from the player. But now I can't seem to figure out how to make it so that the camera doesn't have any controls and simply sits where it starts. I've tried changing the modes of the camera to observer but not sure if that's what I need to do. Wouldn't setting the camera to a controlable object make it just that? A controlable object?At the moment, I have it so when my map starts the camera is where I want it and unattached from any player models. I just need it now so the camera isn't controlable except for when I press a certain button on the GUI.
Thanks for the help so far Thomas! :D
#3
I thought that maybe I could solve this by checking around for the controling and removing any controls for the camera. But so far I've had no luck.
EDIT: I've also thought maybe I'm not setting the mode correctly.
09/01/2010 (5:46 am)
Hmmm, still haven't been able to figure it out. Could use some help again. Sorry, I know it's kind of a noob problem. But I've got it so the map opens and the player is automaticly placed at the camera which is the controlable object. But the problem is the fact that the camera is controlable. I don't want the player to be able to move it at all with the w,a,s,d keys or the mouse. I want it to just sit so the player has to see what I want them to.I thought that maybe I could solve this by checking around for the controling and removing any controls for the camera. But so far I've had no luck.
EDIT: I've also thought maybe I'm not setting the mode correctly.
Torque 3D Owner Thomas
mercatronics
You don't have to modify the camera.cs for it. Just have a look in gamecore.cs and/or deathmatchcore.cs.