September 13, 20187 yr Hello,I need to get the corresponding P3d variables for these variables in Xplanehttp://www.xsquawkbox.net/xpsdk/docs/DataRefs.htmlIs there any reference which would be useful or could anyone help me map a few variablesFor instance, what prepar3d variables should we use to denote Position of pilot's head relative to CG, (acf_peX,acf_peY,acf_peZ in Xplane)?Thank you
September 13, 20187 yr Commercial Member 10 hours ago, Mangala Gandhamadhanan said: Is there any reference which would be useful or could anyone help me map a few variables Use the "Learning Center.chm" file in your main P3D directory, the specs for the P3D variables are in there. But - XP and P3D are vastly different in terms of API access and functionality. You cannot even begin to compare the two, let alone "map" variables. Quote For instance, what prepar3d variables should we use to denote Position of pilot's head relative to CG, (acf_peX,acf_peY,acf_peZ in Xplane)? In your example, you would use the SimConnect method "RequestCameraRelative6DOF", which will give you the camera position relative to the eyepoint. Alternatively you could use the "STRUCT_EYEPOINT_DYNAMIC_ANGLE" and "STRUCT_EYEPOINT_DYNAMIC_OFFSET" simulator variables. There is always more than one way to do things in SimConnect. The eyepoint in turn must be requested using a SIMCONNECT_DATA_XYZ structure and querying the simulator variable "EYEPOINT POSITION". Both value sets combined give you the distances from the datum reference point, which is the 0,0,0 point of the 3D model (but which usually isn't the CG). Learning Center -> SDK -> SimConnect API -> References -> View functions Learning Center -> SDK -> References -> Variables -> Simulation Variables -> Aircraft Position and Speed Variables Best regards Edited September 13, 20187 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.