Verse Library verse

03 Fragment

Declares and populates a transform structure with specific translation, rotation, and scale.

verse-library/verse-scene-graph-hierarchy-transforms/03-fragment.verse

# The transform struct (from /Verse.org/SpatialMath) holds three things:
MyTransform : transform = transform:
    Translation := vector3{ Left := 100.0, Up := 50.0, Forward := 0.0 }  # position
    Rotation := IdentityRotation()                                       # facing
    Scale := vector3{ Left := 1.0, Up := 1.0, Forward := 1.0 }           # size

Comments

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