Reputation
Top tag
Next privilege 10 Rep.
Answer protected questions
Badges
1
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jan
27
awarded  Popular Question
Oct
6
comment rotate sprite and shooting bullets from the end of a cannon
thanks for you answer but i tryed your solution and the bulled is creates in diferents parts of the screen and not in de end of barrel :( see the modifications: [syntax="java"] int x2 = (int) (canon.getSceneCenterCoordinates()[0]+LENGTH_SPRITEMath.cos(canon.getRotation()‌​)); int y2 = (int) (canon.getSceneCenterCoordinates()[1]+LENGTH_SPRITEMath.sin(canon.getRotation()‌​)); final Sprite projectile; projectile = new Sprite( (float) x2, (float) y2, mProjectileTextureRegion,this.getVertexBufferObjectManager() ); [/syntax] any idea? thx again.
Oct
6
asked rotate sprite and shooting bullets from the end of a cannon