Header menu logo Nu

DeformTimeline Type

Changes a slot's Slot.Deform to deform a VertexAttachment.

Constructors

Constructor Description

DeformTimeline(frameCount, bezierCount, slotIndex, attachment)

Full Usage: DeformTimeline(frameCount, bezierCount, slotIndex, attachment)

Parameters:
    frameCount : int
    bezierCount : int
    slotIndex : int
    attachment : VertexAttachment

frameCount : int
bezierCount : int
slotIndex : int
attachment : VertexAttachment

Instance members

Instance member Description

this.Apply

Full Usage: this.Apply

Parameters:
Modifiers: abstract
skeleton : Skeleton
lastTime : float32
time : float32
firedEvents : ExposedList<Event>
alpha : float32
blend : MixBlend
direction : MixDirection

this.Attachment

Full Usage: this.Attachment

Returns: VertexAttachment

The attachment that will be deformed.

Returns: VertexAttachment

this.SetFrame

Full Usage: this.SetFrame

Parameters:
    frame : int - Between 0 and frameCount, inclusive.
    time : float32 - The frame time in seconds.
    vertices : float32[] - Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights.

Sets the time and vertices for the specified frame.

frame : int

Between 0 and frameCount, inclusive.

time : float32

The frame time in seconds.

vertices : float32[]

Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights.

this.SlotIndex

Full Usage: this.SlotIndex

Returns: int
Modifiers: abstract
Returns: int

this.Vertices

Full Usage: this.Vertices

Returns: float32[][]

The vertices for each frame.

Returns: float32[][]

this.setBezier (bezier, frame, value, time1, value1, cx1, cy1, cx2, cy2, time2, value2)

Full Usage: this.setBezier (bezier, frame, value, time1, value1, cx1, cy1, cx2, cy2, time2, value2)

Parameters:
    bezier : int
    frame : int
    value : int
    time1 : float32
    value1 : float32 - Ignored (0 is used for a deform timeline).
    cx1 : float32
    cy1 : float32
    cx2 : float32
    cy2 : float32
    time2 : float32
    value2 : float32 - Ignored (1 is used for a deform timeline).

bezier : int
frame : int
value : int
time1 : float32
value1 : float32

Ignored (0 is used for a deform timeline).

cx1 : float32
cy1 : float32
cx2 : float32
cy2 : float32
time2 : float32
value2 : float32

Ignored (1 is used for a deform timeline).

Type something to start searching.