Skip to content

TriggerSettings

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

TriggerSettings

Namespace: TommoJProductions.ModApi.Attachable

Represents settings for Triggers.

public class TriggerSettings

Inheritance ObjectTriggerSettings

Fields

triggerID

The name of the Trigger.

public string triggerID;

triggerData

The Data type for this trigger. Parts with the same Data type will be installable.

public TriggerData triggerData;

triggerPosition

The Triggers Position. (local space to parent)

public Vector3 triggerPosition;

triggerEuler

The Triggers Rotation. (local space to parent)

public Vector3 triggerEuler;

triggerRadius

The Triggers Size. (Trigger Collider)

public float triggerRadius;

pivotPosition

The Install point Position. (local space to parent)

public Vector3 pivotPosition;

pivotEuler

The Install point Rotation. (local space to parent)

public Vector3 pivotEuler;

useTriggerTransformData

If , TriggerSettings.triggerPosition and TriggerSettings.triggerEuler will be used in place of TriggerSettings.pivotPosition and TriggerSettings.pivotEuler. To position where the part will be when installed.

public bool useTriggerTransformData;

Constructors

TriggerSettings()

Initializes a new instance of trigger settings with default values.

public TriggerSettings()

TriggerSettings(TriggerSettings)

Initializes a new instance of trigger settings and sets all class fields to the provided settings instance, .

public TriggerSettings(TriggerSettings s)

Parameters

s TriggerSettings
The Setting instance to replicate.

Clone this wiki locally