Jump to content

A guide to making Deploying Landing Gears


blackheart612

Recommended Posts

As I'm studying landing gears for AirplanePlus, I dug through piles of pieces of information in the forums and searching through KSP coding through google as well because of the lack of proper documentary for it. Here's a concise visual and textual guide to the compilation of my knowledge, hopefully made easier than longer texts and covering almost everything needed to make basic deploying landing gears

What you need:

-Have a 3D Modeling Software
-Create the model
-Make sure it has proper model hierarchy

Put it in Unity and here are the pictures:

We will use two models from my mod. It might seem cluttered but the important colors are pink and yellow.

gy1KGJD.jpg

Do not be confused by the different global orientations of the two models.
It only suggests that it will determine which is front in KSP but the wheel will have different front than the global.

---

Once exported, part configs come next:

jQPZmps.jpgiMhbLE9.jpg

That's basically gist of the landing gears. Here's for the mirroring of the assymetric parts:

6RKieCU.jpg

Note that mirrored parts ALSO mirror FXModuleLookAtConstraint and lights making it impossible to have proper Drag Braces and Lights on Asymmetric Landing Gears.
And I spelled Asymmetric wrong in my mod. I can't believe this.

So what are you waiting for, download my mod now make your own landing gear now!

---

If I missed anything, or you need to know anything, don't be afraid to ask. I only included the basics, mostly.

 

Step by step tutorial for landing leg:

 

Edited by blackheart612
Link to comment
Share on other sites

  • 2 weeks later...

Thanks for taking the time to make this!

Some additions:

targetPosition is the position on the suspension where it will settle if no forces are applied. Usually 1.0 for landing gear and 0.5 for wheels.

TsubSys is the point in the animation where the wheelCollider takes over. 0 for beginning and 1 for end.

useStandInCollider uses the wheelCollider as a standard collider for the wheel when it is retracted

 

I'm having a small problem with my wheels. They all spin backwards (only visually). Have you encountered this problem before? I'm pretty sure all the relevant parts are rotated correctly.

Link to comment
Share on other sites

@EmbersArc thanks for the additions. Regarding the wheels spinning backwards, I'm sure the axis for spinning is determined by the reference but I'm not sure about the direction of the spin. Of course, you can always make sure that the reference points forward (blue is front). But also try orienting your wheel mesh properly as well as make sure the whole hierarchy of the model has no negative scales or... anything that might break things because landing gear set ups are fragile in unity.

Link to comment
Share on other sites

I had to apply the rotation of all objects in Blender (Ctrl-A -> Apply Rotation). Don't know which one in particular was wrong but it works now.

                           

Here's a rough description of my setup for the the SpaceX landing legs, thought I'd link that here.

 

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