Game Development Community

Hitboxes - Questions

by Trevor Barnett · in Torque Game Engine · 12/04/2001 (1:28 pm) · 1 replies

Building on the tutorial Josh Albrecht wrote about Hitboxes, I've begun another implementation. This implementation dynamically creates Hitboxes for every ShapeBase object (removing the need to actually declare the impact zones for each child) and handles collision seemlessly. One problem I'm having is trying to find the size of each limb as stored in tsShape. I'm also having trouble locking down how the existing Collision code works. I know where ShapeBase->QueueCollision() is called for each object, but I cannot figure out the code that builds CollisionLists and such. Id like to replace that code for the player with my hitbox code. Any help?

#1
12/04/2001 (7:08 pm)
Like for example what does the extrudedPolyList do? I want my hitbox code to integrate nicely with the terrain collision. I think that the extrudedPolyList finds the most extreme points of a model, but I'm going to look into this.