Jump to content

How to access information about Center of Mass and Center of Lift?


Recommended Posts

Center of mass you can get from

Vessel.findWorldCenterOfMass

Center of lift will be more effort; you'll have to find all the Winglet parts and all the ModuleControlSurface components, call OnCenterOfLiftQuery, and combine the results.

Link to comment
Share on other sites

Center of mass you can get from

Vessel.findWorldCenterOfMass

Center of lift will be more effort; you'll have to find all the Winglet parts and all the ModuleControlSurface components, call OnCenterOfLiftQuery, and combine the results.

Thank you very much that's exactly what I was looking for. Is there a list on the web where I can find all this functions/variables?

Link to comment
Share on other sites

In MonoDevelop (or, presumably, Visual Studio), just let it suggest completions. Type "Vessel v; v." and once you hit the dot you get a list of functions to call on the vessel.

Learning what those functions do requires experience; get the source to a mod or two. I find MechJeb's VesselState class particularly useful in terms of learning how to interpret various bits of information.

Link to comment
Share on other sites

In MonoDevelop (or, presumably, Visual Studio), just let it suggest completions. Type "Vessel v; v." and once you hit the dot you get a list of functions to call on the vessel.

Learning what those functions do requires experience; get the source to a mod or two. I find MechJeb's VesselState class particularly useful in terms of learning how to interpret various bits of information.

Thanks for the reply. I did try that already on Mono Develop but I didn't get anything.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...