Thread: clear collisions

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Originally posted by ninebit
    1. divide the frametime (t) into smaller parts and test each of these time slices for collision. less precision though.
    Code:
    //    float t = 1/FramesPerSecond; 
    
    float t = 1/(FramesPerSecond * 2);
    one problem with line 2 ^^
    you need a loop


    FramesPerSecond = 65
    average_time_between_frames = t =
    0.0153846153846153846153846153846154
    this is usually enough to detect a colision

    circle dection is quicker so its best to run it first. long as the
    radis's are set to the most distance vertce from its axis it will
    never produce a false negitave.

    pixelprecise - can u explan some more
    Last edited by Nor; 01-09-2004 at 06:43 PM.
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. About clear(). Please help!
    By Antigloss in forum C++ Programming
    Replies: 12
    Last Post: 07-14-2005, 04:02 AM
  2. How to Clear in Visual C++
    By MyDestiny in forum Windows Programming
    Replies: 4
    Last Post: 03-16-2005, 10:40 PM
  3. How to Clear in Visual C++ 6.0
    By MyDestiny in forum Windows Programming
    Replies: 1
    Last Post: 03-16-2005, 11:57 AM
  4. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 05:14 AM
  5. Using a button to clear a list box!
    By Unregistered in forum C++ Programming
    Replies: 13
    Last Post: 08-23-2002, 07:44 PM