Jump to content

how do you make a pod sink?


popeter45

Recommended Posts

There's actually a component attached to each part in KSP called "PartBuoyancy" or something similar. What you could do is enable or disable that depending on what you need to do with it, changing values if it has them and you need to.

Take a look at this link: http://docs.unity3d.com/Documentation/ScriptReference/Component.GetComponents.html

It can get all of the components (what makes objects in Unity work) and then all you need to do is a little bit of coding to determine what components are on the part in question.

Also take a look at this to provide insight for minimizing code: http://wiki.kerbalspaceprogram.com/wiki/API:Part

Good luck with your project! :)

Link to comment
Share on other sites

Or making it extremely heavy, iirc. There is an old submarine mod which doesn't seem to be totally functional in the current game, I've been poking around with it attempting to fix it up a little, trying to get something that works without plugins. I may go for the approach of converting IntakeAir to some new extremely dense resource via one engine & burn it off with another, might work... that is assuming there is any IntakeAir resource underwater at least.

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