Razor Code
Rambling about code since quite recently

Topics

User Functions





    Don't have an account yet? Sign up as a New User
    Lost your password?

Events

There are no upcoming events

Older Stories

Sunday 14-Sep

  • ACM ICPC 2008 (0)

  • Monday 11-Aug

  • NZ Programming Comp (0)

  • Sunday 27-Jul

  • Blast from the past (0)

  • Monday 21-Jul

  • Timetable generator again (0)

  • Tuesday 08-Jul

  • Hosting (2)

  • Saturday 05-Apr

  • Sparse Volume (0)

  • Friday 28-Mar

  • Carmack (0)

  • Tuesday 04-Mar

  • Back to Uni (0)
  • Dell Kill Switch Direct (0)

  • Monday 18-Feb

  • Lappy (0)

  •  Softy    
     Author: 
     Dated:  Thursday, September 08 2005 @ 09:53 PM NZST
     Viewed:  343 times  
    Games & AppsI'd intended to implement some way to move the view, and maybe a better way of rendering the soft bodies, but I'm just too darn lazy. Speaking of which, I should really be studying right now.

    Anyway, get the soft body physics prog here. The basic idea is to make models look like like jelly or a rubber ball or something in between. Once it's running, press space to lift up some of the models points. One thing I think is cool is the way the 2 pluses in the cpp model move almost identically. Have fun!

    Read more for some things I encountered along the way.

    I originally had a variable time step, which worked ok, except whenever some other program took some cpu time the thing would jump. So I switched it to a fixed time step, but left the framerate variable, which was much better. Then, even though I couldn't be bothered adding any real collision, I made the collision I had swept. That is, I'd find the time at which a point was going to hit the ground plane, rather than how to move it out of the ground. I even set up the friction to be applied for the amount of time step the point is touching the ground. But there was a slight problem. The points touching the ground would jitter slightly, just a couple of pixels. I eventually decided it was probably just the time of intersection doesn't give that accurate an intersection point when you multiply it by the velocity. So, as a cheap hack, I set the y of the point to the height of the ground plane afterwards. Worked like a charm.



    Trackback

    Trackback URL for this entry: http://razorcode.net/trackback.php/20050908035351735

    No trackback comments for this entry.
    Softy | 2 comments | Create New Account
    The following comments are owned by whomever posted them. This site is not responsible for what they say.
    Softy
    Authored by: Anonymous on Friday, September 09 2005 @ 08:08 AM NZST
    I have NO IDEA what u just said, but it sounds complicated.

    keep up the cool stuff
    Canuck
    Softy
    Authored by: Razor on Friday, September 09 2005 @ 06:52 PM NZST
    Haha, thanks. Did you try the program?