Difference between revisions of "User:DavidJCobb/Rotation Library Tutorial"
User:DavidJCobb/Rotation Library Tutorial (edit)
Revision as of 00:29, 24 August 2014
, 00:29, 24 August 2014→Creating the Dibella Statue
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 |