Author Topic: PROBLEM: Camera Facing/Targeting  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

PROBLEM: Camera Facing/Targeting
Here is my problem:
I have a camera which should make a turn, so i thought the best way to do that, is to create a ship, make the camera face to the ship, and then track it(ship is moving)...
What happens in-game: camera is on the right position but facing the wrong way(~180°, xz coordinate), however the movement from the ship (offset) still does its job.
So how can i fix this problem/ Is there an alternative way to make your camera turn(not instantly) and i also think that i don't understand it really, so please somebody explain it to me.
thanks

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: PROBLEM: Camera Facing/Targeting
You want "set-camera-facing" as soon as you specify the 4th argument (the first three are coordinates) the camera will pan and not jump
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

  
Re: PROBLEM: Camera Facing/Targeting
Oh, im blind...thanks however

 

Offline herkie423

  • 29
  • Plunge into the chaos!
Re: PROBLEM: Camera Facing/Targeting
These are the SEXP you may want to place

--Event:Trigger Camera Tracker              ------> this is the trigger. Place an SEXP to modify variable to 1 to enable and Modify variable again to disable
         When
              =
                Tracker1
                1
                      Do Nothing
--Event:Track Object                                ----->This event is chained above. Set the "repeat" times to 50000 or more and "interval" to 0
          When
              True
                   Set-Camera-Facing-Object
                        Get ObjectX                       ---->This accurate and easier than manually placing the values
                              YourShip
                        Get ObjectY                       ---->This accurate and easier than manually placing the values
                              YourShip
                        Get ObjectZ                       ---->This accurate and easier than manually placing the values
                              YourShip
                        1000                                 ----->This is for smooth panning.