Game Development Community

Bravetree tank pack and turret camera

by Jason Granum · in Torque Game Engine · 12/14/2004 (10:24 pm) · 24 replies

I've just purchased the bravetree tank pack and must thank Bravetree for this awesome and very well done resource! Every resource I've gotten from them has been extreemly well documented and easy to understand - a wealth of information!

On to my question however. When the tank turret turns the camera stares straight ahead of the tank thus not allowing the player to see where they are shooting. Is it possible to have the camera follow the turret without any or very few engine code changes? Thanks!
Page«First 1 2 Next»
#21
01/05/2005 (4:31 pm)
Michael,thanks!

I get it works great! what I do is:

1)use Michael's code pack and reCompile the engine.

2)In tankDB.cs ,commented out this line:
camera = "DefaultTankCamera";

3)In tank.cs,in function TankShapeData::onAdd(%this,%obj),commented out this line:
hideCrossHair();

4)Add "cam" and "eye" node in the tank model and export DTS

Run Torquedemo.exe,will get 1st person view,work great!

I have another question,when I press "TAB",can't turn to 3rd person view,and the engine lock up,what's wrong with it?
#22
01/05/2005 (5:54 pm)
Ok I felt worried that I may have seemed like an ass in my last post. I just bought the tank pack last week and was messing with it a little bit. I'm starting to stress that i'm not staying focused enough on my game and freaked out a little when people were asking for my help. Sorry if anyone felt bad.


Moving on...

@ Joe I thank you for your resonse and cool pack, i'm learning a great deal from it. More than I expected I could handle. I will try to get my changes over to you ASAP. I also will discuss the changes in the private forums.

@tyq.fk i'm not sure what may be causing that. I get no lockups.

I would like to test my changes some more anyway so if you hold tight I will do a more in depth explaination.
#23
01/05/2005 (6:25 pm)
Michael,Thanks your quick reply.I have a new problem,when the tank come into collision with aiplayer,the engine lock up too,maybe there is something wrong.

[ediit]
It has no problem now,I export Tank's DTS again,I don't know why,perhaps I maked something wrong with the model.
#24
01/19/2005 (3:30 pm)
Like Joe Maruschak from BraveTree has suggested, I propose to continue this discussion in the Torque SDK Private Forums. So we could go farther and expose code.
Here, let's continue.
Page«First 1 2 Next»