SetCameraMatrix

From Multi Theft Auto: Wiki
Revision as of 04:48, 16 March 2008 by Erorr404 (talk | contribs) (New page: __NOTOC__ {{Client function}} This function sets the camera's position and direction. The first three arguments are the point at which the camera lies, the last three are the point the cam...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets the camera's position and direction. The first three arguments are the point at which the camera lies, the last three are the point the camera faces (the point it "looks at").

Syntax

bool setCameraMatrix ( float positionX, float positionY, float positionZ, float lookAtX, float lookAtY, float lookAtZ )

Required Arguments

  • positionX: The x coordinate of the camera's position.
  • positionY: The y coordinate of the camera's position.
  • positionZ: The z coordinate of the camera's position.
  • lookAtX: The x coordinate of the point the camera faces.
  • lookAtY: The y coordinate of the point the camera faces.
  • lookAtZ: The z coordinate of the point the camera faces.

Returns

Returns true if the arguments are valid, false otherwise.

Example

Pending..

moo?


See Also