Changed collision code, we now have several collision groups:
authorMatthias Braun <matze@braunis.de>
Tue, 27 Dec 2005 23:25:59 +0000 (23:25 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 27 Dec 2005 23:25:59 +0000 (23:25 +0000)
commitd62647592b4ccffa89794af6fa03faaced46999d
treeeaa56c6f40f269dfc5cb7cc0b8929b7f73eb800d
parent607f0915105868a3d5d2d325d7bb028a9dd8b6b3
Changed collision code, we now have several collision groups:
  really moving objects,
  static (solid) objects,
  tilemap,
  touchable (nonsolid) objects
  (moving statics, not implemented yet will be used for moving platforms)

We now set 1 of these groups for all objects and then only check:
  moving objects vs statics + tilemap
  moving objects vs touchable objects
  moving objects vs moving objects

This gives a huge speedup for the Area42 map and will be the base for a correct fix of some collision problems encountered with ?-blocks

SVN-Revision: 2958
22 files changed:
src/badguy/badguy.cpp
src/badguy/snowball.cpp
src/collision_grid.cpp
src/game_object.hpp
src/game_session.cpp
src/main.cpp
src/moving_object.cpp
src/moving_object.hpp
src/object/block.cpp
src/object/coin.cpp
src/object/flower.cpp
src/object/growup.cpp
src/object/oneup.cpp
src/object/player.cpp
src/object/powerup.cpp
src/object/rock.cpp
src/object/skull_tile.cpp
src/object/star.cpp
src/object/unstable_tile.cpp
src/sector.cpp
src/sector.hpp
src/trigger/trigger_base.cpp