Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Source of my project to help me - Strange angle behavior  (Read 1548 times)

0 Members and 1 Guest are viewing this topic.

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Source of my project to help me - Strange angle behavior
« on: August 18, 2011, 08:00:26 am »
Hi,

I have a game prototype (get source here https://github.com/prsolucoes/solodefender) but after update to sfml 2, some strange behavior happen on bullet angle and all collisions stop work.

Can anyone help me?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Source of my project to help me - Strange angle behavior
« Reply #1 on: August 18, 2011, 09:26:02 am »
The angle signs have changed in SFML 2, maybe your problem is related to it:
http://www.sfml-dev.org/forum/viewtopic.php?t=4467
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Source of my project to help me - Strange angle behavior
« Reply #2 on: August 18, 2011, 03:35:34 pm »
hi,

i already read your post but i dont understand what i need change in my code.

And your library is nice :)

Can you help me?

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Source of my project to help me - Strange angle behavior
« Reply #3 on: August 18, 2011, 05:50:45 pm »
Quote from: "prchakal"
hi,

i already read your post but i dont understand what i need change in my code.

And your library is nice :)

Can you help me?
You need to make all angles negative of what they previously were now. This was done to make screens coordinates and rotations more consistent (since screen coordinates flip the Y axis as compared to rotations).
I use the latest build of SFML2

 

anything