Jump to content

wheel problem


Recommended Posts

Hey I created two landing gears and this is the first time I created a wheel so I am not sure if I did this right. here is the picture of the wheel in unity and them in ksp.

397effab-494f-4110-a85c-ab04a2a7f79a_zps88c1b142.jpg

As you can see the wheels are not working properly, in fact the only reason my capsule is up is because of the stock gears. Also this a static landing gear so there is no animation.

Link to comment
Share on other sites

I had a closer look at the image and another problem if that you've got the wheel model and wheel collider on the same object. It won't work like that as the collider is designed to stay stationary and not rotate.

I can't see any other issues in that screenshot, can you post the config file?

Also, what errors does the game give you related to the part or the module you're using in the output_log.txt file in the KSP_data folder?

WheelColliders are disabled by default, so once they're the right way up any sinking to the ground is likely to be due to the module not loading far enough to enable them.

Link to comment
Share on other sites

So the wheel collider is all by itself, just the size and location of the model? In my model there are two wheels, so should there be two different wheel colliders? Ill try that tommorrow!

Link to comment
Share on other sites

this might help:

Given he's using the name suspensionParent and referred to the part as a landing gear I inferred two things:

1) He's using the landing gear module not the rover wheel one

2) He's already checked the stickies and seen the picture of the stock landing gear setup, hence his use of the suspensionParent name.

@Deltafee:

It doesn't have to be by itself but it does need to be on a separate object to the wheel model (that isn't a child of the wheel model). You need to position it at the suspension's point of maximum compression.

I don't know if the default wheel position matters for the landing gear module or if it snaps it to the centre of the wheelCollider but to be on the safe side I would put them in the same location.

Link to comment
Share on other sites

Yeah I am using the stock part diagram, I have the wheel Colliders separate but in the same directory as the wheel models, I am alittle lost on what you mean by the "suspension's point of maximum compression". Here is a picture of what I have done:

Done_zps64a08dcd.png

here is the stock diagram i am following as well:

i1aPmlpng_zps8da1eb86.jpeg

Link to comment
Share on other sites

They still appear to be the wrong way round, I can't see the line on the WheelCollider in that picture so I assume it's pointing off to the side as it was in the previous screenshot. You don't need the mesh filter on the WheelColliders.

On the suspension, I just mean that if the wheels go up and down then they should start out as far up as possible.

Link to comment
Share on other sites

They still appear to be the wrong way round, I can't see the line on the WheelCollider in that picture so I assume it's pointing off to the side as it was in the previous screenshot. You don't need the mesh filter on the WheelColliders.

I thought you said the green arrow should be pointing down?

Link to comment
Share on other sites

I thought you said the green arrow should be pointing down?

The WheelCollider representation is a green circle with a line from the centre to a point on the circumference, that line needs to be vertical and touching the ground.

Link to comment
Share on other sites

Okay so as of now it is vertical in the x-y plane from what I am understanding it needs to be vertical in the y-z plane?

With the circle of the wheel collider being head on in that picture I can't see where the down indicator line on them is.

Link to comment
Share on other sites

  • 2 weeks later...
So here's the finished version of my landing gear:

http://i283.photobucket.com/albums/kk293/deltafee/Finished_zps47b57ceb.png

Unfortunately there's a new problem which is how do I make it so the wheels brake?

It should be automatic, if it's not working try adding wheelName = WheelCollider to the ModuleLandingGear section of the config.

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