-
Notifications
You must be signed in to change notification settings - Fork 17
TriggerSettings
Namespace: TommoJProductions.ModApi.Attachable
Represents settings for Triggers.
public class TriggerSettings
Inheritance Object → TriggerSettings
The name of the Trigger.
public string triggerID;
The Data type for this trigger. Parts with the same Data type will be installable.
public TriggerData triggerData;
The Triggers Position. (local space to parent)
public Vector3 triggerPosition;
The Triggers Rotation. (local space to parent)
public Vector3 triggerEuler;
The Triggers Size. (Trigger Collider)
public float triggerRadius;
The Install point Position. (local space to parent)
public Vector3 pivotPosition;
The Install point Rotation. (local space to parent)
public Vector3 pivotEuler;
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;
Initializes a new instance of trigger settings with default values.
public TriggerSettings()
Initializes a new instance of trigger settings and sets all class fields to the provided settings instance, .
public TriggerSettings(TriggerSettings s)
s
TriggerSettings
The Setting instance to replicate.