Arikin
Member
|
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 |
|
Dynad
Member
|
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 |
|
Arikin
Member
|
RE: cSkeleton Rotation
I don't want to rotate a head, but whole skeleton. But thanks for fast reply
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 |
|
Arikin
Member
|
RE: cSkeleton Rotation
help Pls!
|
|
09-07-2010 02:10 PM |
|
caspersky
Member
|
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 |
|
Arikin
Member
|
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
(This post was last modified: 09-07-2010 02:42 PM by Arikin.)
|
|
09-07-2010 02:37 PM |
|