| InSim
    0.6c
    Documentation of Live for Speed InSim Protocol | 
Cam Pos Pack. More...
#include <ispackets.h>
| Data Fields | |
| byte | Size | 
| 32 | |
| byte | Type | 
| ISP_CPP | |
| byte | ReqI | 
| instruction : 0 / or reply : ReqI as received in the TINY_SCP | |
| byte | Zero | 
| Vec | Pos | 
| Position vector. | |
| word | H | 
| heading - 0 points along Y axis | |
| word | P | 
| pitch - 0 means looking at horizon | |
| word | R | 
| roll - 0 means no roll | |
| byte | ViewPLID | 
| Unique ID of viewed player (0 = none) | |
| byte | InGameCam | 
| InGameCam (as reported in StatePack) | |
| float | FOV | 
| 4-byte float : FOV in degrees | |
| word | Time | 
| Time in ms to get there (0 means instant) | |
| word | Flags | 
| set ISS state flags | |
Cam Pos Pack.
Full camera packet (in car OR SHIFT+U mode)
The ISS state flags that can be set are :
On receiving this packet, LFS will set up the camera to match the values in the packet, including switching into or out of SHIFT+U mode depending on the ISS_SHIFTU flag.
If ISS_VIEW_OVERRIDE is set, the in-car view Heading Pitch and Roll (but not FOV) will be taken from the values in this packet. Otherwise normal in game control will be used.
Position vector (Vec Pos) - in SHIFT+U mode, Pos can be either relative or absolute.
If ISS_SHIFTU_FOLLOW is set, it's a following camera, so the position is relative to the selected car. Otherwise, the position is absolute, as used in normal SHIFT+U mode.
Definition at line 2277 of file ispackets.h.
| word IS_CPP::Flags | 
set ISS state flags
Definition at line 2296 of file ispackets.h.
| float IS_CPP::FOV | 
4-byte float : FOV in degrees
Definition at line 2293 of file ispackets.h.
| word IS_CPP::H | 
heading - 0 points along Y axis
Definition at line 2286 of file ispackets.h.
| byte IS_CPP::InGameCam | 
InGameCam (as reported in StatePack)
Definition at line 2291 of file ispackets.h.
| word IS_CPP::P | 
pitch - 0 means looking at horizon
Definition at line 2287 of file ispackets.h.
| Vec IS_CPP::Pos | 
Position vector.
Definition at line 2284 of file ispackets.h.
| word IS_CPP::R | 
roll - 0 means no roll
Definition at line 2288 of file ispackets.h.
| byte IS_CPP::ReqI | 
instruction : 0 / or reply : ReqI as received in the TINY_SCP
Definition at line 2281 of file ispackets.h.
| byte IS_CPP::Size | 
32
Definition at line 2279 of file ispackets.h.
| word IS_CPP::Time | 
Time in ms to get there (0 means instant)
Definition at line 2295 of file ispackets.h.
| byte IS_CPP::Type | 
Definition at line 2280 of file ispackets.h.
| byte IS_CPP::ViewPLID | 
Unique ID of viewed player (0 = none)
Definition at line 2290 of file ispackets.h.
| byte IS_CPP::Zero | 
Definition at line 2282 of file ispackets.h.
 1.7.6.1
 1.7.6.1