Verse Library verse

01 Fragment

Defines a keyframed movement step that smoothly elevates a platform by four hundred units.

verse-library/verse-anim-moving-platform/01-fragment.verse

# A rideable platform is just an animated mesh entity. Because the Keyframed
# Movement component moves the entity in the pre-physics phase, anything
# standing ON the surface — including a player — is carried along for the ride.
# So "make a platform a player can ride" is really "animate a floor entity."
RiseLeg := keyframed_movement_delta:
    Duration := 3.0
    Easing := ease_in_out_cubic_bezier_easing_function{}
    Transform := transform:
        Translation := vector3{ Up := 400.0, Left := 0.0, Forward := 0.0 }

Comments

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