Verse Library verse

09 Defining Props That Move

Defines an abstract base class with configurable parameters for creating animated movable props.

extracted-snippets/documentation/en-us/fortnite/animating-prop-movement-1-making-movable-props-in-verse/09-defining-props-that-move.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/animating-prop-movement-1-making-movable-props-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/animating-prop-movement-1-making-movable-props-in-verse.md
# Section:    Defining Props that Move
using { /Fortnite.com/Devices }
using { /Fortnite.com/Devices/CreativeAnimation }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/SpatialMath }
MoveDurationTip<localizes>:message = "The amount of time in seconds the prop takes to move to its destination."
MoveEaseTypeTip<localizes>:message = "The animation easing applied to the movement."
MoveEndDelayTip<localizes>:message = "The delay after the movement finishes."
MoveOnceAndStopTip<localizes>:message = "Whether the RootProp should stop in place after it finishes moving."
MoveStartDelayTip<localizes>:message = "The delay before the movement starts."
MoveTargetsTip<localizes>:message = "The array of CreativeProp to move towards. These targets can be children of the RootProp."
RootPropTip<localizes>:message = "The prop that moves. This should be the root prop of the object you want to move."
ShouldResetTip<localizes>:message = "Whether the RootProp should reset back to its starting position after it finishes moving."
# Defines a creative prop that moves to a target or location using animation.
movable_prop<public> := class<abstract>():
# The creative prop associated with this class.
# This should be the root prop of the object you want to move.
@editable {ToolTip := RootPropTip}
RootProp:creative_prop = creative_prop{}
# The duration in seconds it takes for the prop to move to its destination.
@editable {ToolTip := MoveDurationTip}
MoveDuration:float = 3.0
# The duration in seconds to wait before movement begins.
@editable {ToolTip := MoveStartDelayTip}
MoveStartDelay:float = 0.0
# The duration in seconds to wait after movement ends.
@editable {ToolTip := MoveEndDelayTip}
MoveEndDelay:float = 0.0

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in