Jump to content

Landing Gear issues: wheel does not rotate, suspension doesn't work


Recommended Posts

For the last days i've been trying to make a landing gear part following some tutorials here on the forum and other posts, but I'm not getting it right. I'm not sure if it's the hierarchy or the cfg.

The wheel works as it should but the mesh does not rotate and the suspension does not move; it stays frozen on what should be the most extended position whether it's flying or grounded. Can you help me figure it out?

ynfoc1detm691.png

Here's the MU. ▽sus_up is the base and ▽sus_down should follow +suspension and ▽wheel

zewr1yuc4n691.png

And heres's my CFG

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 6/19/2022 at 8:58 PM, CarelessDoughnut said:

Can you help me figure it out?

Expand  

Hi. I am used to building off of the Stock colliders so your wheel collider looks wrong to me, I also don't know what modifiers you have put in there.

Based on what you appear to be going for I think you need to to look at the Stock "Gear Free" as when you remove the Steering module from it is pretty much exactly what you are trying for in having a no steering, suspension landing gear. Either open it up in your 3D program to look at how it is set up or actually use it and replace the meshes with your own and adjust the transform positions to match the size of your meshes. I have configed a version of the stock with the steering module removed and it works well. Here is a pic of it in my BforArtists set up (Fork of Blender) so you can see how it's heirachy is set up. Just compare to it's config file. Many of the actions of a wheel are completely in the config file, the transforms in the .mu simply set the origin points from which they start.         wheelTransformName = wheel, determines what gets rotated when it is moving. Note that the WheelCollider is an actual collider, not an empty axis, and that the name is the same for collider and it's collection. In yours it is different.

ocRqClR.jpg

Link to comment
Share on other sites

  On 6/20/2022 at 5:41 AM, ColdJ said:

Hi. I am used to building off of the Stock colliders so your wheel collider looks wrong to me

Expand  

I made that collider from the Add Mu Collider > Sphere since i didn't see a "circle" option and thought "well, they're both round" . I did look onto the GearFree model to do mine but i tried doing it from scratch.

 

  On 6/20/2022 at 5:41 AM, ColdJ said:

I also don't know what modifiers you have put in there.

Expand  

You mean the text? thats the position of the objects. I thought it could be a mistake with  suspensionOffset, suspensionDistance or targetPosition

 

Now I remade the part using  GearFree as you said, the wheel does rotate, but the two fairing parts got separated

z8pdn13glt691.png

Link to comment
Share on other sites

  On 6/20/2022 at 6:37 PM, CarelessDoughnut said:

Now I remade the part using  GearFree as you said, the wheel does rotate, but the two fairing parts got separated

Expand  

You need to adjust your suspension distance, most likely only in the config file but if you can't get it together then you need to change position of transforms and size of collider in relation to your meshes. The numbers used in the config determine many things including the starting distance between the base and the section with the wheel. Try to adjust the gear in game with the UI first to get an idea of what might need to be adjusted in the config.

When you were in the space plane hangar did it look together?

There are parameters for travel and spring strength in the config. I am ignorant about exact measurements but I generally experiment till I get it how I want. Remember you can make several uniquely name configs that use the same model and have them all load at the same time so that you can try many variations to see what gets changed in one session of KSP.

Also try the wheels out on the flat grass off to the side of the runway to see if your wheels look natural on the surface, whether they look sunk in or floating. The runway is never a reliable indicator as it seems to play around with it's collider positions. You change the radius parameter in  the MODULE        name = ModuleWheelBase to change how high it seems to sit.

Edited by ColdJ
Link to comment
Share on other sites

  On 6/21/2022 at 12:32 AM, ColdJ said:

I found a page that may help

Expand  

Exactly that post i saw like once and then lost it, but it's the one i understood the most.

  On 6/20/2022 at 11:14 PM, ColdJ said:

When you were in the space plane hangar did it look together?

Expand  

Yes, in the "extended" position.

  On 6/20/2022 at 11:14 PM, ColdJ said:

Remember you can make several uniquely name configs

Expand  

Oh that's a cool trick; i was closing and reopening KSP over deleting a minus.:D

Link to comment
Share on other sites

  • 3 weeks later...
  On 7/6/2022 at 11:48 PM, CarelessDoughnut said:

Thank you ColdJ I got it working by isolating the suspension values, trying them one by one. Now it's working fine... except its clipping on the SPH. I'm guessing the parts in the editor imitate the position on the  .mu?

Expand  

Luckily I saw this after you put a post in the modeling section. Make sure you tag a member properly or quote them if you want them to see your post and respond. To tag you need to start with the @      symbol and then type their name, a list will appear for you to choose the correct member from.

The world centre in the blender workspace is considered the centre of the .mu model you create. So when a part is loaded into the SPH it will be offset from the centre by how it is offset in the blender workspace. Clipping in the SPH is not a problem as you can always move the thing your building around in side the SPH to a spot where you can see what you are trying to see.

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