Moving players position in 3rd person
by Jules · in Torque Game Engine · 11/15/2008 (2:52 am) · 3 replies
Is there a way to position your player to the left while having team members who are AI to the right of the camera view in 1st or 3rd person mode? I can only make the AI fall behind my player.
Would I need an offset for my non AI player to the left, and then offset the distance of my players position with the AI so that they do not go near my player? They can then be seen in my camera view.
Would I need an offset for my non AI player to the left, and then offset the distance of my players position with the AI so that they do not go near my player? They can then be seen in my camera view.
#2
Thanks for your reply. I managed to fix it in the end; I used an offset for the position to move the co-ordinates of the AI player so that they were matched by the player but offset.
Have you positioned a player before, like the gears of torque demo? How did you go about doing that?
11/16/2008 (4:58 pm)
Hi GuimoThanks for your reply. I managed to fix it in the end; I used an offset for the position to move the co-ordinates of the AI player so that they were matched by the player but offset.
Have you positioned a player before, like the gears of torque demo? How did you go about doing that?
#3
Alternatively, you may just use an AIPlayer as a Player. When you assign an AIPlayer as the controlObject it works exactly as a player. When you detach the controlObject from the AIPlayer you can send commands to it.
11/17/2008 (8:40 pm)
I havent tried the demo you mentioned but when I wanted to force a player to move to a specified position, I implemented many of the AIPlayer features to the Player class. That way when I wanted the player to do something I just dettached the control Object from the player and forced the player to move as I wanted. Alternatively, you may just use an AIPlayer as a Player. When you assign an AIPlayer as the controlObject it works exactly as a player. When you detach the controlObject from the AIPlayer you can send commands to it.
Torque 3D Owner Guimo