- Joined
- Feb 4, 2009
- Messages
- 1,314
this makes stuff spin around its z-axis
I want it to spin around its x- or y- axis
how to do that?
I tried it by using an "Euler to Quaternion"-calculator but it seems like I know far to less to use it properly
how do I have to change the values to make it rotate like I want?
(this is spinning around an attachment point
how do I make the attachment point shift its position depending on the attached units size?)
this code contains unnecessary stuff but I did not know how and what to remove and I grew tired of trying what does what so I went here to ask some smart people how to
for infos why I want to do it go here:
http://www.hiveworkshop.com/forums/...lone-abuse-cyclone-for-rotating-units-139232/
Code:
0: { 0, 0, 0, 1 },
InTan { 0, 0, 0, 1 },
OutTan { 0, 0, 0, 1 },
90: { 0, 0, 0.707107, 0.707107 },
InTan { 0, 0, 0.731894, 0.681418 },
OutTan { 0, 0, 0.731894, 0.681418 },
180: { 0, 0, -1, 0 },
InTan { 0, 0, 0.996917, 0.078459 },
OutTan { 0, 0, 0.996917, 0.078459 },
270: { 0, 0, 0.707107, -0.707107 },
InTan { 0, 0, -0.67559, 0.737277 },
OutTan { 0, 0, -0.67559, 0.737277 },
360: { 0, 0, 0, -1 },
InTan { 0, 0, 0, -1 },
OutTan { 0, 0, 0, -1 },
how to do that?
I tried it by using an "Euler to Quaternion"-calculator but it seems like I know far to less to use it properly
how do I have to change the values to make it rotate like I want?
(this is spinning around an attachment point
how do I make the attachment point shift its position depending on the attached units size?)
this code contains unnecessary stuff but I did not know how and what to remove and I grew tired of trying what does what so I went here to ask some smart people how to

Code:
Version {
FormatVersion 800,
}
Model "CycloneTarget" {
NumHelpers 2,
NumAttachments 2,
BlendTime 150,
}
Sequences 3 {
Anim "Birth" {
Interval { 2233, 3333 },
NonLooping,
MaximumExtent { 0, 0, 150 },
}
Anim "Stand" {
Interval { 6867, 10133 },
}
Anim "Death" {
Interval { 13467, 18467 },
NonLooping,
}
}
GlobalSequences 2 {
Duration 360,
Duration 360,
}
Helper "dummy spin" {
ObjectId 0,
Rotation 5 {
Hermite,
GlobalSeqId 0,
0: { 0, 0, 0, 1 },
InTan { 0, 0, 0, 1 },
OutTan { 0, 0, 0, 1 },
90: { 0, 0, 0.707107, 0.707107 },
InTan { 0, 0, 0.731894, 0.681418 },
OutTan { 0, 0, 0.731894, 0.681418 },
180: { 0, 0, -1, 0 },
InTan { 0, 0, 0.996917, 0.078459 },
OutTan { 0, 0, 0.996917, 0.078459 },
270: { 0, 0, 0.707107, -0.707107 },
InTan { 0, 0, -0.67559, 0.737277 },
OutTan { 0, 0, -0.67559, 0.737277 },
360: { 0, 0, 0, -1 },
InTan { 0, 0, 0, -1 },
OutTan { 0, 0, 0, -1 },
}
}
Helper "dummy two spin" {
ObjectId 1,
Rotation 5 {
Hermite,
GlobalSeqId 1,
0: { 0, 0, 0, 1 },
InTan { 0, 0, 0, 1 },
OutTan { 0, 0, 0, 1 },
90: { 0, 0, 0.707107, 0.707107 },
InTan { 0, 0, 0.731894, 0.681418 },
OutTan { 0, 0, 0.731894, 0.681418 },
180: { 0, 0, -1, 0 },
InTan { 0, 0, 0.996917, 0.078459 },
OutTan { 0, 0, 0.996917, 0.078459 },
270: { 0, 0, 0.707107, -0.707107 },
InTan { 0, 0, -0.67559, 0.737277 },
OutTan { 0, 0, -0.67559, 0.737277 },
360: { 0, 0, 0, -1 },
InTan { 0, 0, 0, -1 },
OutTan { 0, 0, 0, -1 },
}
}
Attachment "Sprite First Ref" {
ObjectId 2,
Parent 0,
Translation 1 {
Hermite,
6867: { 0, 0, 0 },
InTan { 0, 0, 0 },
OutTan { 0, 0, 0 },
}
AttachmentID 0,
}
Attachment "Sprite Second Ref" {
ObjectId 3,
Parent 1,
AttachmentID 1,
}
PivotPoints 4 {
{ 0, 0, 0 },
{ 0, 0, 0 },
{ 0, 0, 0 },
{ 0, 0, 0 },
}
for infos why I want to do it go here:
http://www.hiveworkshop.com/forums/...lone-abuse-cyclone-for-rotating-units-139232/