Difference between revisions of "User:DavidJCobb/Rotation Library"
Jump to navigation
Jump to search
m
User:DavidJCobb/Rotation Library (edit)
Revision as of 16:53, 11 February 2015
, 16:53, 11 February 2015no edit summary
imported>DavidJCobb |
imported>DavidJCobb m |
||
Line 1: | Line 1: | ||
I've created a rotation library that makes it easier to work with rotation math in Skyrim. Among other things, it can position and rotate one object relative to another for you. [[User:DavidJCobb/Rotation Library Tutorial|This tutorial]] takes you through creating a basic demo of the library, and assumes that you've compiled the (interdependent) scripts below. | I've created a rotation library that makes it easier to work with rotation math in Skyrim. Among other things, it can position and rotate one object relative to another for you. [[User:DavidJCobb/Rotation Library Tutorial|This tutorial]] takes you through creating a basic demo of the library, and assumes that you've compiled the (interdependent) scripts below. | ||
Please use different [[Scriptname|script names]] if you choose to use these libraries, so as to avoid collisions with any edits or enhancements that other users may make in other mods. You should probably strip out all of the Debug.Trace() statements as well. ''' | Please use different [[Scriptname|script names]] if you choose to use these libraries, so as to avoid collisions with any edits or enhancements that other users may make in other mods. You should probably strip out all of the Debug.Trace() statements as well. '''Credit me by name ("DavidJCobb") and link back to this page if you use this code; doing the research and testing was hard work, and I also want it to be easy for people to find this library when they need it. If you make your own modifications, then also link to the specific revision (in this page's edit history) that the final script is based on, if possible.''' | ||
The relative-position code was adapted from [[Spatial functions and snippets#Rotation matrix|code originally written by Chesko]]. | The relative-position code was adapted from [[Spatial functions and snippets#Rotation matrix|code originally written by Chesko]]. |