Skip to content

AssemblyTypeJointSettings

Tommo J. Phillips edited this page Oct 22, 2023 · 2 revisions

AssemblyTypeJointSettings

Namespace: TommoJProductions.ModApi.Attachable

Represents settings for assembly type, joint

public class AssemblyTypeJointSettings

Inheritance ObjectAssemblyTypeJointSettings

Fields

breakForce

Represents the break force to break this joint. NOTE: unbreakable joints are Single.PositiveInfinity.

public float breakForce;

boltTightnessEffectsBreakforce

represents if the bolts tightness effects the joints breakforce.

public bool boltTightnessEffectsBreakforce;

Properties

breakForceMin

Represents the breakforce min limit. Relevant only to boltable parts that have the AssemblyTypeJointSettings.boltTightnessEffectsBreakforce setting set to . Used as an inital value so that the part being installed doesn't fall off before the player can tighten bolts. This value must be high enough to support the part's weight but lower then AssemblyTypeJointSettings.breakForce.

public float breakForceMin { get; set; }

Property Value

Single

Constructors

AssemblyTypeJointSettings()

Inits new joint settings class with default values

public AssemblyTypeJointSettings()

AssemblyTypeJointSettings(Single)

Inits new joint settings class and assigns class variables.

public AssemblyTypeJointSettings(float breakForce)

Parameters

breakForce Single

AssemblyTypeJointSettings(Single, Single, Boolean)

Inits new joint settings class and assigns all class variables.

public AssemblyTypeJointSettings(float breakForce, float breakForceMin, bool boltTightnessEffectsBreakForce)

Parameters

breakForce Single

breakForceMin Single

boltTightnessEffectsBreakForce Boolean

AssemblyTypeJointSettings(AssemblyTypeJointSettings)

Inits new joint settings class and assigns instance variables.

public AssemblyTypeJointSettings(AssemblyTypeJointSettings atjs)

Parameters

atjs AssemblyTypeJointSettings

Clone this wiki locally