PDA

View Full Version : direction



panduro
23rd July 2008, 14:24
HI

I’m writing my first Qt game, and i have a small problem.
The game is like the old Asteroids game.

I’m using a QGraphicsScene as my universe and a QGraphicsItem as my ship.

When I’m firing I can get the right position, for the bullet, but not the same direction as my ship.
I have tried to map from item to scene, but without any look.
The bullet is also a QGraphicsItem.

thanx
Søren P.

aamer4yu
23rd July 2008, 20:51
Have a look at the asteroid example in Qt Demo --> Graphic Views
It might help u :)