On Sun, 2008-06-29 at 15:11 +0100, Mark Williamson wrote:
> Where is the box?  Is it just at the origin of its parent world?

(0,0,0) is halfway between 1 and 2. 

> It sounds really like your co-ordinates are somehow confused, as you noted 
> elsewhere it seems like the origin of the rotation is far away.  

You can get a spiral by changing the rotate call in basic-2.py from:

self.rotate_y(proportion * 5.0)

to:

x = 0.01
self.rotate(proportion * 5.0,soya.Point(self.parent, x, 0, 0),
soya.Point(self.parent,x,1,0))

However, for x = 0 it works normally (rotate around the centre without
spiralling). If you use x=0.01 and use self instead of parent, the sword
will fly off the screen in about 2 frames (while it really should be
spinning around almost indistinguishably from rotate_y(...) ).

I'm happy to hear of a work around, all that I want to do is to be able
to "wheel" the box from either front corners (1 or 2) just as antique
army units used to do to adjust their facing.

Christian



_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to