Class ElementAttachment
Represents an element that is attached to another element.
Inheritance
ElementAttachment
Assembly: SlipeServer.Server.dll
Syntax
public class ElementAttachment
Constructors
|
Edit this page
View Source
ElementAttachment(Element, Element, Vector3?, Vector3?)
Declaration
public ElementAttachment(Element source, Element target, Vector3? positionOffset = null, Vector3? rotationOffset = null)
Parameters
Properties
|
Edit this page
View Source
PositionOffset
The position offset between the source and the target
Declaration
public Vector3 PositionOffset { get; set; }
Property Value
|
Edit this page
View Source
RotationOffset
The rotation offset between the source and the target
Declaration
public Vector3 RotationOffset { get; set; }
Property Value
|
Edit this page
View Source
Source
The element that is attached to another element
Declaration
public Element Source { get; }
Property Value
|
Edit this page
View Source
Target
The element that the source is attached to
Declaration
public Element Target { get; }
Property Value
Methods
|
Edit this page
View Source
UpdateAttachedElement()
Updates the position (and rotation) of the source element based on the position (and rotation) of the target element
Declaration
public void UpdateAttachedElement()
Events
|
Edit this page
View Source
PositionOffsetChanged
Triggered when the position offset changes
Declaration
public event Action<Vector3>? PositionOffsetChanged
Event Type
|
Edit this page
View Source
RotationOffsetChanged
Triggered when the rotation offset changes
Declaration
public event Action<Vector3>? RotationOffsetChanged
Event Type
Operators
|
Edit this page
View Source
implicit operator ElementAttachment?(ElementAttachment?)
Declaration
public static implicit operator ElementAttachment?(ElementAttachment? attachment)
Parameters
Returns