Jump to content

Manipulating Wing's Lift


Recommended Posts

I want to create a wing that under different conditions will vary in lift provided, but I don't know of a way to change that in code. I'm not all that experienced in writing plugins for KSP, but I have the basics down. Does anyone have any ideas on how to do this?

Link to comment
Share on other sites

This is the stock lift alteration bit for B9 Pwings

https://github.com/Crzyrndm/B9-PWings-Fork/blob/master/B9%20PWings%20Fork/WingProcedural.cs#L1938

All it's doing is casting the part as an object of type Winglet, and then setting the public variable deflectionLiftCoeffficient

This may all be moot though given 1.0 is days away and throws aero through a blender.

Edited by Crzyrndm
Link to comment
Share on other sites

This is the stock lift alteration bit for B9 Pwings

https://github.com/Crzyrndm/B9-PWings-Fork/blob/master/B9%20PWings%20Fork/WingProcedural.cs#L1938

All it's doing is casting the part as an object of type Winglet, and then setting the public variable deflectionLiftCoeffficient

This may all be moot though given 1.0 is days away and throws aero through a blender.

Yeah, the smart thing to do here is wait. But thanks in advance if this still works after 1.0!

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...