Skip to content

TorqueToYieldBoltSettings

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

TorqueToYieldBoltSettings

Namespace: TommoJProductions.ModApi.Attachable

Represents Torque to yield bolt specific settings.

public class TorqueToYieldBoltSettings : BoltSettings

Inheritance ObjectBaseBoltSettingsBoltSettingsTorqueToYieldBoltSettings

Fields

torqueAngle

The torque angle of this bolt.

public float torqueAngle;

name

for initializing a new instance of bolt with custom name.

public string name;

type

Represents the bolts type.

public BoltType type;

canUseRachet

If , the rachet can be used to tighten and loosen the fastener.

public bool canUseRachet;

posStep

Represents the position step. (how quick the position of the bolt moves in BoltSettings.posDirection. when un/tightening)

public float posStep;

rotStep

Represents the rot step. (how quick the bolt rotates when un/tightening.

public float rotStep;

posDirection

Represents positional direction of bolt.

public Vector3 posDirection;

rotDirection

Represents the rotational direction of bolt.

public Vector3 rotDirection;

highlightWhenActive

if true, highlights the bolt green when the bolt is activated.

public bool highlightWhenActive;

activeWhenUninstalled

If true, Bolt is visible and logic is active when uninstalled.

public bool activeWhenUninstalled;

size

Represents the tool size required to un/tighten this fastener.

public BoltSize size;

customPrefab

Represents the custom prefab to use. set this to the prefab you want the fastener to be. leave null if you want modapi to handle model creation.

public GameObject customPrefab;

Constructors

TorqueToYieldBoltSettings()

public TorqueToYieldBoltSettings()

TorqueToYieldBoltSettings(TorqueToYieldBoltSettings)

public TorqueToYieldBoltSettings(TorqueToYieldBoltSettings s)

Parameters

s TorqueToYieldBoltSettings

Methods

copy()

public TorqueToYieldBoltSettings copy()

Returns

TorqueToYieldBoltSettings

Clone this wiki locally