#[repr(C)]pub struct XPLMProbeInfo_t {
pub structSize: c_int,
pub locationX: f32,
pub locationY: f32,
pub locationZ: f32,
pub normalX: f32,
pub normalY: f32,
pub normalZ: f32,
pub velocityX: f32,
pub velocityY: f32,
pub velocityZ: f32,
pub is_wet: c_int,
}Expand description
XPLMProbeInfo_t
XPLMProbeInfo_t contains the results of a probe call. Make sure to set structSize to the size of the struct before using it.
Fields§
§structSize: c_intSize of structure in bytes - always set this before calling the XPLM.
locationX: f32Resulting X location of the terrain point we hit, in local OpenGL * coordinates.
locationY: f32Resulting Y location of the terrain point we hit, in local OpenGL * coordinates.
locationZ: f32Resulting Z location of the terrain point we hit, in local OpenGL * coordinates.
normalX: f32X component of the normal vector to the terrain we found.
normalY: f32Y component of the normal vector to the terrain we found.
normalZ: f32Z component of the normal vector to the terrain we found.
velocityX: f32X component of the velocity vector of the terrain we found.
velocityY: f32Y component of the velocity vector of the terrain we found.
velocityZ: f32Z component of the velocity vector of the terrain we found.
is_wet: c_intTells if the surface we hit is water (otherwise it is land).
Trait Implementations§
Source§impl Clone for XPLMProbeInfo_t
impl Clone for XPLMProbeInfo_t
Source§fn clone(&self) -> XPLMProbeInfo_t
fn clone(&self) -> XPLMProbeInfo_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more