Verse Library verse

07 Making Props That Translate

Overrides movement logic to safely set a target position when a custom offset exists.

extracted-snippets/documentation/en-us/fortnite/animating-prop-movement-3-translating-props-in-verse/07-making-props-that-translate.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/animating-prop-movement-3-translating-props-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/animating-prop-movement-3-translating-props-in-verse.md
# Section:    Making Props That Translate
# Translate the RootProp toward the MoveTarget, or MovePosition if one is set.
Move<override>()<suspends>:void=
# Set the TargetPosition to the MovePosition if it is set.
if:
NewPosition := MovePosition?
then:
set TargetPosition = NewPosition

Comments

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