Hi !

I've just commited a new version of the physical engine.

There are two main changes :

1 - The code has been split in 2 files :
    - physics.cpp  (which does only physics stuff and manipulates
      physical word units (meter, kilos, etc...))

    - physical_object.cpp (which handle game objects and manipulates
      game units (pixels, ...))

  The method to update an object position is no more "PhysicalEngine"
  but "UpdatePosition" :) This method calls the physical engine to perform
  the computation of the motion.

2 - The physical engine now manages air resistance. This feature is used
    to implement the "parachute". This is also taken into account during a
    fall. The fall does no longer "infinity acceleration".

The code to manage balancing (for ninja rope) and rope elasticity (for benji
jump) is in the physical engine, but not yet fully functionnal.

R.


Répondre à