Home   Help Search Login Register  

Author Topic: coordinates and camsettarget  (Read 1287 times)

0 Members and 1 Guest are viewing this topic.

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:coordinates and camsettarget
« Reply #15 on: 13 Jan 2004, 20:57:48 »
Uh... What will that help me Artak? Then I will get a fixed pos of 3000 which I don't want.

:beat: *Gets Shot* :beat:

Offline Welshmanizer

  • Members
  • *
Re:coordinates and camsettarget
« Reply #16 on: 13 Jan 2004, 21:30:16 »
HERE IS THE ANSWER:

Simply, you cannot target a camera exactly vertically downwards.

You need it at an angle so the camera knows which way is 'up' and which is 'down' and which direction to face - even though it appears to be vertically downward.

So try this:

_camera camsetpos [_x,_y,10]
_camera camsettarget [_x,(_y+0.01),0]

Effectively you will get the same thing.



Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:coordinates and camsettarget
« Reply #17 on: 13 Jan 2004, 21:33:08 »
That's why I used _y=_y-1, but I'll try it again.

:beat: *Gets Shot* :beat:

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:coordinates and camsettarget
« Reply #18 on: 13 Jan 2004, 21:35:40 »
Hmmm, that did it! Thanks m8! Wonder why my _y=_y-1 didn't work ???

:beat: *Gets Locked* :beat: