Results 1 to 5 of 5

Thread: Platform game collision Help(AGAIN!!)

  1. #1

    Platform game collision Help(AGAIN!!)

    Hi,
    Guys can anybody tell me what kind of collision detection should be used in a platform game. I mean i understand SAT collisions test ,i also use frame independent sweep tests and all. But there are so many different objects in a platform game, and one type of collision detection is not able to handle every object in the game, so how to handle that. What do you guys do? and how to do it effeciently?
    Last edited by acebuddy29; May 21st, 2008 at 07:29 AM.

  2. #2
    1,532
    posts
    I make half sense
    if you look in source there is a detection class

    also I wish gamers would band together, there are so many individuals making thier own games its just silly
    Click my sig.

  3. #3
    Compile a list (array most likely) of objects that need to be tested (only the objects that needed to be tested right now, not the enemy in the next room.)

    I would assume you keep the objects that need different hitTests in different lists, one for terrain, one for enemies/projectiles, etc.

  4. #4
    Quote Originally Posted by DangerousDan View Post
    Compile a list (array most likely) of objects that need to be tested (only the objects that needed to be tested right now, not the enemy in the next room.)

    I would assume you keep the objects that need different hitTests in different lists, one for terrain, one for enemies/projectiles, etc.
    Yea tht is almost how i do it too. But i always felt tht am doing something wrong and tht ter has to be a more effecient way. Well neways just 2 posts?. No more ideas?

  5. #5
    Quote Originally Posted by DangerousDan View Post
    Compile a list (array most likely) of objects that need to be tested (only the objects that needed to be tested right now, not the enemy in the next room.)

    I would assume you keep the objects that need different hitTests in different lists, one for terrain, one for enemies/projectiles, etc.
    Pretty sure that's how most people do it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012