Rotating Props
4. Rotating Props
Another platforming obstacle common to the genre is objects that rotate, such as a spinning platform you have to constantly move on, or a bar that moves back and forth that you have to jump over.
Another platforming obstacle common to the genre is objects that rotate, such as a spinning platform you have to constantly move on, or a bar that moves back and forth that you have to jump over.
The second component of an object’s transform is its rotation, and you can manipulate an object to rotate around an axis. There are several different ways you can use rotation to make unique platforming challenges, and you’ll learn how to code them in this section.
Making Props that Rotate
Follow these steps to build code that rotates your props:
-
Create a new Verse class named
rotating_propthat inherits frommovable_propusing Verse Explorer. Add the<concrete>specifier to this class to expose its properties to UEFN.| | # A prop that rotates by an additional rotation or rotates to match | | --- | --- | | | # a Creative prop's rotation. | | | rotating_prop<public> := class<concrete>(movable_prop): |
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.