So why the metaphor you might ask? Because no code is ever concrete, not even when a game is released.
This applies to what I'm currently working on. A new type of collision detection system. I won't get into the finer details or than this. It allows for a greater number of different collisions to go on than before. This is useful considering the number of features that we would like to add in later.
How it works is each entity is assigned to a group. Environment, Stationary Intervactive, Movable Interactive, and Characters. Of couse I might add more to add more filtering. For example bricks, ladders and caged ladders are all assigned to the environment group with a bitmask to filter them. Before I was assigning one bitmask to each entity, the problem is that Panda only has 32 bitmasks for filtering.
No comments:
Post a Comment