Jump to content

Rover plugin help.


Recommended Posts

I am making a mod for the game that is a rover. It is done in Blender and Unity and I have a test rover in the game. The problem is at higher speeds on planets with lower gravity the rover flips over (it works perfectly fine on Kerbin). I tried adjust the weight but different planets have different gravity so that doesn't work. I was thinking I could make a plugin for the rover that keeps it from ever flipping over. (I know it wouldn't be realistic, but the rover isn't meant to be realistic, it's meant to be fun.)

I have never made a plugin before, so I was wondering it this is even possible?

If it is possible, can anyone point me in the right direction to get started. I have Unity (Mono Developer).

Link to comment
Share on other sites

basically your mod will have to keep track of the rotational velocities and if the rover begins to roll, apply a force to counter it.

Or if you want to keep it simple then a constant downwards force relative to the rover through the centre of mass will work.

Link to comment
Share on other sites

I think I am going to need to watch a lot of tutorials to do this. I understand what "part.rigidBody.AddRelativeForce" is doing, but I don't understand how to make a plugin (code) in MonoDevelop. Thanks.

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