Changes between Initial Version and Version 1 of CarCameras


Ignore:
Timestamp:
2011-09-17 11:45:05 (13 years ago)
Author:
edy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CarCameras

    v1 v1  
     1{{{ #!Markdown 
     2 
     3# CarCameras 
     4 
     5Manages the vehicle-specific camera settings, including mirror cameras, vehicle cameras and view parameters. 
     6 
     7This script is added to the root GameObject of the vehicle. 
     8 
     9#### Fixed cameras 
     10 
     11Vehicle-specific cameras typically included in the vehicle's hierarchy. They are intended to show a simultaneous, additional view to the main camera so their _Normalized View Port Rect_ property must be configured accordingly (i.e. [0, 0, 0.25, 0.25] for the lower left corner of the screen). The cameras are controlled from [CameraControl](wiki:CameraControl). 
     12 
     13The fixed cameras don't really need to be "fixed": they can have their own scripts, be attached to joints, or even be placed outside the vehicle's hierarchy. 
     14 
     15__showFixedCams__: enables or disabled the current fixed camera for this vehicle. 
     16 
     17__startupFixedCam__: camera index from the list of fixed cameras (below) to be selected at startup. 
     18 
     19__FixedCameras__: references to the fixed cameras for this vehicle. Only one fixed camera will be enabled at a time. 
     20 
     21#### MirrorLeft, MirrorRight, MirrorRear 
     22 
     23Optional cameras that provide the rear view for the mirrors. The mirror cameras are managed from the [CameraControl](wiki:CameraControl) script, including their _Target Texture_, and they are displayed using GUITextures. 
     24 
     25## View parameters 
     26 
     27These settings are used from [CameraControl](wiki:CameraControl) for adapting the different camera modes to each vehicle. 
     28 
     29__CameraLookAtPoint__: position in the vehicle where the main camera will point to. Typically is the Center of Mass (CoM), as other points may exhibit strange effects when steering or during in-air tricks. 
     30 
     31__DriverFront__: position of the driver's view. The main camera will attach to it while in Driver View mode. 
     32 
     33__viewDistance__ (m): comfortable distance for viewing the vehicle from outside. Bigger vehicles require more distance, an vice-versa. Used in the Follow Car and Mouse View camera modes. 
     34 
     35__viewHeight__ (m): comfortable height for viewing the vehicle from outside. Used in the Follow Vehicle camera mode together with _ViewDistance_. 
     36 
     37__viewDamping__: a measure of how fast the camera responds to the vehicle's rotation in the Follow Vehicle camera mode. Fast and agile vehicles require higher values (Sport Coupe), while slow vehicles require lower values (Bus). 
     38 
     39__viewMinDistance, viewMaxDistance__ (m): distance limits to the vehicle in the Mouse View camera mode. 
     40 
     41}}}