About Store Forum Documentation Contact



Post Reply 
cSkeleton Rotation
Author Message
Arikin Offline
Member

Post: #1
cSkeleton Rotation
I need to rotate a cskel to make a char face target point.
I've tried something like that after animations:
Code:
cskel.matrix().orn.setDir(dir);

Doesn't work ;/ How to rotate skeleton?
09-05-2010 01:14 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: cSkeleton Rotation
Does the head has a keypoint in your animation?

There is always evil somewhere, you just have to look for it properly.
09-05-2010 02:27 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Arikin Offline
Member

Post: #3
RE: cSkeleton Rotation
I don't want to rotate a head, but whole skeleton. But thanks for fast reply wink

Any solutions? It seems to be a simple problem but I can't solve it ;x
(This post was last modified: 09-05-2010 07:59 PM by Arikin.)
09-05-2010 05:01 PM
Find all posts by this user Quote this message in a reply
Arikin Offline
Member

Post: #4
RE: cSkeleton Rotation
help Pls!
09-07-2010 02:10 PM
Find all posts by this user Quote this message in a reply
caspersky Offline
Member

Post: #5
RE: cSkeleton Rotation
try this :
normalise ur direction vector (dir)
//this reference to the character object ( Chr )
this->angle.x=dir.x;
this->angle.y=dir.y;
09-07-2010 02:20 PM
Find all posts by this user Quote this message in a reply
Arikin Offline
Member

Post: #6
RE: cSkeleton Rotation
yes thanks but if I created own struct no based on chr ? ;/

__ Ok i Solved it!

Code:
matrix.orn.rotateXVec(Time.time());
cskel.updateMatrix(matrix);
that rotates skeleton wink
(This post was last modified: 09-07-2010 02:42 PM by Arikin.)
09-07-2010 02:37 PM
Find all posts by this user Quote this message in a reply
Post Reply