Thread: Some collision handling fun

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    This is exactly what I want it to do - i.e. let you glide along it. Right now it's not.

    Let's say you just hit the wall at angle, and you try to move again, so it looks like this:

    Attachment 8042

    The clipping algorithm will clip the entire movement, but we actually want sliding action to happen. This is a case of clipped motion between the x and z axes.

    Movement along the floor with gravity acting as a downward force is essentially the same case but on the x and y axes.

    [edit]
    and yes downward movement is allowed. The player could be on a ledge and then jump onto the floor below.
    [/edit]
    Last edited by DavidP; 04-11-2008 at 12:27 AM.
    My Website

    "Circular logic is good because it is."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. event handling is serialized in MS Visual Studio C++ 2005 ??
    By mynickmynick in forum Windows Programming
    Replies: 3
    Last Post: 08-07-2008, 04:47 AM
  2. SDL Collision Handling
    By Neo1 in forum Game Programming
    Replies: 2
    Last Post: 04-02-2008, 02:04 PM
  3. Collision Detection Problems
    By Dark_Phoenix in forum Game Programming
    Replies: 1
    Last Post: 12-17-2006, 03:25 PM
  4. Collision Detection
    By Grantyt3 in forum C++ Programming
    Replies: 3
    Last Post: 09-30-2005, 03:21 PM
  5. Replies: 4
    Last Post: 05-03-2002, 09:40 PM