On Sun, 06 Nov 2005 11:17:18 +0100
Krabat vonUebel <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> 
> is there a way to retreive the angle of an axis of a world object? 
> Rotation itself works pretty fine by using the CoordSyst.turn_vertical 
> (...) function, i would just like to prevent people from flying loopings 
> by stopping the rotation at angles greater than e.g. 60 degrees.

A single axis does not have any angle... i guess you mean the angle between 
e.g. the world's current X axis and the scene X axis ?

In Soya you can use Vector.angle_to(other_vector) to compute angles, e.g. :

Vector(world, 1.0, 0.0, 0.0).angle_to(Vector(scene, 1.0, 0.0, 0.0))

to get the angle between the X axis of "world" and the X axis of "scene" (X 
being the 1.0, 0.0, 0.0 coordinates).

Jiba

Reply via email to