Second demo of my 2D physics engine

Поділитися
Вставка
  • Опубліковано 5 лип 2010
  • The ball in green has a bounciness parameter of 1.1, this means that it gains energy every time it bounces :) (the other balls have a value of 0.5)
    Again: the red line indicates the size and direction of the gravitational force on the object. In this case that's (0.0, -9.81) on every ball.
    I've implemented line segments (before that it only supported infinite lines/walls)
    This video shows what's possible using line segments, but it also shows the current flaws/bugs in the engine:
    - Balls don't react properly to multiple simultanious collisions (they start tointersect)
    - Collisions with edges of lines cause balls to not react at all, or stick to a line.
    The simulation looks a bit laggy, this is because of the capture software (recordmydesktop in ubuntu), the simulation itself runs super smooth and barely uses any cpu.
  • Наука та технологія

КОМЕНТАРІ •