Mod Tool: Difference between revisions

842 bytes added ,  4 August 2012
m
no edit summary
mNo edit summary
mNo edit summary
Line 310: Line 310:
* making loops from parts of animations
* making loops from parts of animations
* copying animation data from one character to another
* copying animation data from one character to another
* creating new door animations
' VBScript code
set oRotation = XSIMath.CreateRotation( XSIMath.DegreesToRadians( 40 ), XSIMath.DegreesToRadians (0), XSIMath.DegreesToRadians (0) )
set oQuaternion = XSIMath.CreateQuaternion()
oRotation.GetQuaternion( oQuaternion )
Application.LogMessage "Quaternion rotation is " _
& oQuaternion.W & "," _
& oQuaternion.X & "," _
& oQuaternion.Y & "," _
& oQuaternion.Z
After a few experiments onisplit v0.9.54.0 seems to output XYZ-W instead of WXYZ.
Example:
X Y Z
Rotation in Mod Tool 40 0 0
------------------------------------------------------
W X Y Z
Q.Rotation in Mod Tool 0,939 0,342 0 0
------------------------------------------------------
X Y Z -W
Q.Rotation onispl. v54 0,334 0 0 -0,94
Also, OBAN flag "ZAxisUp" needs some more investigation.




[[Category:Windows-only modding tools]]
[[Category:Windows-only modding tools]]
8,452

edits