The orientation of an object in 3D space is something quite complicated (look for quaternion and matrix stuff if you want to know why). For this reason Soya does not provide any way to get the orientation of a body. By the way soya matrix system works very well !!! But it is not intended to be used by the end user.
For your task there is an easy way to go : Just create a vector oriented toward north with your scene (world) as parent. Then create a vector with your character as parent and oriented toward the front of your character. And that's it, any time you want to check the orientation of your character from north you use the angle_to method with those two vectors. Easy :) Souvarine. gsteixei wrote: > Hi there, > Im new with soya and im stucked with a simple task, i would like to > know how could i know the direction of an object. > For example, I have a character (actually it is Balazar :p) and i > want to know which is its direction from north, like if he have a > compass... > I searched for it in google, tutorial and documentation and got no > awnser yet, i will apreciate any help. > > thanks > > gnudoido > > _______________________________________________ > Soya-user mailing list > [email protected] > https://mail.gna.org/listinfo/soya-user > > _______________________________________________ Soya-user mailing list [email protected] https://mail.gna.org/listinfo/soya-user
