Jump to content

[ANSWERED] Center of Mass


Recommended Posts

I am truly sorry for doing this again but here's the problem:

Javascript is disabled. View full album

Center of mass is there. Why? I don't know! Here's the config file:


PART
{
name = Composite Glass Tube 4x2.5
module = Part
author = 2001kraft/Nazari
MODEL
{
model = GlassThings/Parts/Structural/glasstube_2001kraft_small/model
position = -11.41, -4.16, -4.34
scale = .5, .5, .5
rotation = 0.0, 90.0, 0.0
}
rescaleFactor = 1
alphaCutoff = 0.58


node_stack_top = 0, 4.935, 0, 0, 1, 0, 0
node_stack_bottom = 0, 1, 0, 0, -3, 0, 0


TechRequired = composites
entryCost = 1600


cost = 1600
category = Structural
subcategory = 0
title = Composite Megastrong Glass Tube 4x2.5
manufacturer = Kerbal Materials Corporation C.A.G.E. Systems
description = As more and more requests came in for a complete redesign of the glass tube of the previous generation, we present you the upgraded edition! Now complete with fuel crossfeed, and an amazing look! Get one now for just √1600!


attachRules = 1,1,1,1,1


mass = 0.4
dragModelType = default
maximum_drag = 0.25
minimum_drag = 0.2
angularDrag = 1
crashTolerance = 75
breakingForce = 200
breakingTorque = 200
maxTemp = 1300
fuelCrossFeed = True
}

In unity, everything is fine: the collision mesh, etc. It's just being a weirdo in KSP.

Edited by 2001kraft
Link to comment
Share on other sites

-why are your node_attach locations not symmetric? this seems like an object that needs the center of mass at the dead center, yet one attach is showing 4.935 and the other is 1

"node_stack_top = x, y, z, angx, angy, angz, size"

-whats up with the node attach angles you have shown? why is one as "-3"?

looking at the config, is there any reason your model is so far off from center? [position = -11.41, -4.16, -4.34]

Link to comment
Share on other sites

The main reason for the attach nodes to be that way is the fact that when the model was loaded, the attachment nodes were way off from the actual model. When I tried to move the attach nodes, one of them didn't move - I now know why. I completely forgot what was what! :(

However, there's no problem with any of the attachment nodes. All of them are fine. What might be wrong is the second attachment node relative to the y coordinate of the mesh - the second one which is at the back of the tube is actually to be moved. Pretty much, if I move the mesh back a bit and move the attachment nodes to match it, the model should be fine shouldn't it? If not, I'll use the CoMoffset. Thanks for reminding me of everything! :D

EDIT: also, the position is like that because I was adjusting the position of the mesh towards the attachment nodes. The rest is history :P

- - - Updated - - -

New config file:


PART
{
name = Composite Glass Tube 4x2.5
module = Part
author = 2001kraft/Nazari
MODEL
{
model = GlassThings/Parts/Structural/glasstube_2001kraft_small/model
position = -11.41, -4.16, -4.34
scale = .5, .5, .5
rotation = 0.0, 90.0, 0.0
}
rescaleFactor = 1
alphaCutoff = 0.58


CoMOffset = 0, 3, 0


node_stack_top = 0, 4.935, 0, 0, 1, 0, 0
node_stack_bottom = 0, 1, 0, 0, -1, 0, 0


TechRequired = composites
entryCost = 1600


cost = 1600
category = Structural
subcategory = 0
title = Composite Megastrong Glass Tube 4x2.5
manufacturer = Kerbal Materials Corporation C.A.G.E. Systems
description = As more and more requests came in for a complete redesign of the glass tube of the previous generation, we present you the upgraded edition! Now complete with fuel crossfeed, and an amazing look! Get one now for just √1600!


attachRules = 1,1,1,1,1


mass = 0.4
dragModelType = default
maximum_drag = 0.25
minimum_drag = 0.2
angularDrag = 1
crashTolerance = 75
breakingForce = 200
breakingTorque = 200
maxTemp = 1300
fuelCrossFeed = True
}

Everything is perfectly centered. Thanks to everyone :)

Edited by 2001kraft
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...