Difference between revisions of "User:DavidJCobb/Rotation Library Tutorial"

Jump to navigation Jump to search
m
imported>DavidJCobb
imported>DavidJCobb
Line 58: Line 58:


Edit the base activator's script properties. Set ''pfPositionOffset'' to an array containing the mask's coordinates; set ''pfRotationOffset'' to an array containing the mask's rotation. Edit the placed activator's properties as well: set ''pkChildObject'' to the placed mask itself.
Edit the base activator's script properties. Set ''pfPositionOffset'' to an array containing the mask's coordinates; set ''pfRotationOffset'' to an array containing the mask's rotation. Edit the placed activator's properties as well: set ''pkChildObject'' to the placed mask itself.
== Notes ==
Most applications of this library will follow the same basic format as the setup described above: you'll define the position and rotation of some "child" relative to the "parent," and then apply a script that feeds the child, parent, relative position, and relative rotation into my library.
Examples of parent-child relationships:
* Keeping a Door inside of a door frame that can be moved at run-time
* Keeping a Light anchored to a light source (e.g. wall sconce) that can be moved at run-time
* Repositioning the invisible DummyBookMarkers in a bookshelf, when moving the bookshelf at run-time
Anonymous user

Navigation menu