Quantum 3
3.0.9
Compressed pitch + yaw angles (ranges -89 to 89 and -+ 180)) to be used as part of input to optimize bandwidth, encoded as two shorts. More...
Public Member Functions | |
| readonly override int | GetHashCode () |
| Overrides the hash code generation of this type. More... | |
Static Public Member Functions | |
| static void | Serialize (void *ptr, IDeterministicFrameSerializer serializer) |
| Serializes an InputPitchYaw into a FrameSerializer to write or read from a frame snapshot. More... | |
Public Attributes | |
| readonly FPQuaternion | LookRotation => FPQuaternion.Euler(Pitch, Yaw, FP._0) |
| Generates an FPQuaternion using Pitch and Yaw as Euler X and Y respectively. More... | |
Static Public Attributes | |
| const int | SIZE = sizeof(int) * 2 |
| The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed. More... | |
Properties | |
| FP | Pitch [get, set] |
| Mouse-look pitch (Euler X, clamped to -90, 90). More... | |
| FP | Yaw [get, set] |
| Mouse-look Yaw (Euler Y, clamped to -90, 90). More... | |
Compressed pitch + yaw angles (ranges -89 to 89 and -+ 180)) to be used as part of input to optimize bandwidth, encoded as two shorts.
|
inlinestatic |
Serializes an InputPitchYaw into a FrameSerializer to write or read from a frame snapshot.
| ptr | The pointer to the InputPitchYaw. |
| serializer | The FrameSerializer instance into which the struct will be serialized. |
|
inline |
Overrides the hash code generation of this type.
|
static |
The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.
| readonly FPQuaternion Quantum.InputPitchYaw.LookRotation => FPQuaternion.Euler(Pitch, Yaw, FP._0) |
Generates an FPQuaternion using Pitch and Yaw as Euler X and Y respectively.
|
getset |
Mouse-look pitch (Euler X, clamped to -90, 90).
|
getset |
Mouse-look Yaw (Euler Y, clamped to -90, 90).