Refactored SpuGatheringCollisionTask to use code in SpuCollisionShapes.

More work on SpuBatchRaycaster. It is working now on the PS3 and Windows.
This commit is contained in:
johnmccutchan
2008-01-14 23:44:07 +00:00
parent 6ba6805b43
commit be0beaf7bd
20 changed files with 1190 additions and 1474 deletions

View File

@@ -16,7 +16,7 @@ struct RaycastGatheredObjectData
btTransform m_worldTransform;
};
struct SpuRaycastTaskWorkUnitOut
ATTRIBUTE_ALIGNED16(struct) SpuRaycastTaskWorkUnitOut
{
btVector3 hitNormal; /* out */
btScalar hitFraction; /* out */
@@ -24,14 +24,14 @@ struct SpuRaycastTaskWorkUnitOut
};
/* Perform a raycast on collision object */
struct SpuRaycastTaskWorkUnit
ATTRIBUTE_ALIGNED16(struct) SpuRaycastTaskWorkUnit
{
btVector3 rayFrom; /* in */
btVector3 rayTo; /* in */
SpuRaycastTaskWorkUnitOut* output; /* out */
};
#define SPU_RAYCAST_WORK_UNITS_PER_TASK 16
#define SPU_RAYCAST_WORK_UNITS_PER_TASK 4
struct SpuRaycastTaskDesc
{