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

Author Topic: Collisions...  (Read 2231 times)

0 Members and 1 Guest are viewing this topic.

xlar54

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Collisions...
« on: January 05, 2015, 06:44:34 pm »
Just wanted to say, I was searching the SFML reddit site, looking for some help on 2D collisions.. Im thrilled to know that Im not alone.   The problem Ive been facing with my platformer (guy jumps or falls through a wall because of framerate before collision detect) is a very common one.  As much of a pain it is, its really good to know Im at least on the right track, having the same issues. Silver lining.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Collisions...
« Reply #1 on: January 05, 2015, 08:11:39 pm »
You are aware that the forum is not the Reddit comment section, right? ;D

Anyways collision detection and response is not specific to SFML as such, don't limit your search to SFML only.
First you should use a fixed timestep, so your physics doesn't depend on your framerate anymore and then you should Google a bit for the "tunneling effect" in the context of game development, it's a pretty common issue and there are lots of solutions out there.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything