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

Author Topic: Particle effect spin  (Read 1435 times)

0 Members and 2 Guests are viewing this topic.

eventhorizon02

  • Newbie
  • *
  • Posts: 7
    • View Profile
Particle effect spin
« on: April 09, 2017, 11:49:47 pm »
Hi,
I have implemented a fairly nice Particle effect system. I control velocities radial and tangial acceleration, etc.
I am using a vertex array with textured vertices.
I would like to also implement a spin per particle.
I would appreciate a hint in the direction to go about in implementing a spin or rotation if possible at all.

Cheers.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Particle effect spin
« Reply #1 on: April 10, 2017, 12:33:32 am »
You can use a sf::Transform to rotate the points of a quad or point.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

eventhorizon02

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Particle effect spin
« Reply #2 on: April 10, 2017, 09:09:26 am »
Thank you very much.

 

anything