-
Notifications
You must be signed in to change notification settings - Fork 16
BoltWithNutSettings
Namespace: TommoJProductions.ModApi.Attachable
Represents all settings for a bolt.
public class BoltWithNutSettings : BoltSettingsInheritance Object → BaseBoltSettings → BoltSettings → BoltWithNutSettings
Represents the add nut offset. an offset applied to the model.
public float offset;Settings for the nut.
public BaseBoltSettings nutSettings;for initializing a new instance of bolt with custom name.
public string name;Represents the bolts type.
public BoltType type;If , the rachet can be used to tighten and loosen the fastener.
public bool canUseRachet;Represents the position step. (how quick the position of the bolt moves in BoltSettings.posDirection. when un/tightening)
public float posStep;Represents the rot step. (how quick the bolt rotates when un/tightening.
public float rotStep;Represents positional direction of bolt.
public Vector3 posDirection;Represents the rotational direction of bolt.
public Vector3 rotDirection;if true, highlights the bolt green when the bolt is activated.
public bool highlightWhenActive;If true, Bolt is visible and logic is active when uninstalled.
public bool activeWhenUninstalled;Represents the tool size required to un/tighten this fastener.
public BoltSize size;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;Initializes new instance of b settings with default values.
public BoltWithNutSettings()inits new instance of bolt settings and copies instance values.
public BoltWithNutSettings(BoltWithNutSettings s)s BoltWithNutSettings
the instance of bolt settings to copy.
copies values to new instance and returns.
public BoltWithNutSettings copy()