Game Development Community

Updating melee resource

by Kenan Chabuk · in Torque 3D Professional · 03/05/2014 (11:00 am) · 0 replies

I'm trying to make an improved version of the melee resource. I have the basics working and the framework in place. What I'm wondering is the best way to implement the collision detection. Currently, per physics update I'm creating a 4 sided poly from 2 nodes from the weapon image of the previous physics tick and the 2 nodes in the current physics update. I create a clippedPolyList out of this poly and use gServerContainer->buildPolyList to get a list of objects it intersects. Is this the best way to go about finding collisions in the sweeping area of the weapon?