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

Author Topic: Collision response  (Read 3660 times)

0 Members and 1 Guest are viewing this topic.

Njifra

  • Guest
Collision response
« on: February 26, 2014, 08:40:28 pm »
So... Im making a game... And I promised my friends to realease it in 2 weeks... And I have no idea how to make working collision response. Could someone help me with making collision response/handling?
I have never saw working collision response/handle in SFML, C++... All I see on forum is just collision detection... So any help?

Info:
 -AABB/Rectangle collision

Ask if you need more info, please reply.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Collision response
« Reply #1 on: February 26, 2014, 08:52:42 pm »
What game are you making?
For what do you need the collision?

There are tons of material about that topic, just google it...
Failing to succeed does not mean failing to progress!

Njifra

  • Guest
Re: Collision response
« Reply #2 on: February 26, 2014, 09:01:19 pm »
I'm making tilemap collision, but I only use 1 tile for whole world, so I would say its just normal Rectangle collision...
Game is sandbox(tile placing and so on...)

didii

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Collision response
« Reply #3 on: February 27, 2014, 04:21:24 pm »
By collision response, do you mean what happens to the two colliding objects?

Njifra

  • Guest
Re: Collision response
« Reply #4 on: February 27, 2014, 11:32:49 pm »
Yes, so that two rectangles dont go throught each other

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Collision response
« Reply #5 on: February 27, 2014, 11:44:04 pm »
Collision detection = Finding out whether objects collide
Collision response = Reacting to the collision

There are a lot of threads about both collision detection and response, for example this one:
http://en.sfml-dev.org/forums/index.php?topic=13766.msg96935#msg96935

You might also want to search elsewhere because collision handling itself isn't specific to SFML.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: