Start your project by creating a private template from this repository: https://github.com/CC-GPR-350/a6. Remember to:
- Make your repository private
- Add me as a collaborator
- Set your
UNITY_EMAIL,UNITY_PASSWORD, andUNITY_SERIALrepository secrets
Enhance the code provided to detect Sphere-AABB collisions and Sphere-OBB collisions.
- No specific gameplay enhancements are required. All tests will be done on newly created objects.
- Add whatever additional state is required to the provided classes
- Ensure that new state operates relative to Unity state -- for example, if a Unity object with scale=[1,1,1] has an AABB attached, any queries to the halfWidth of the AABB should return [0.5,0.5,0.5].
- In the
CollisionDetectionclass, create and implement a new function to test collision between spheres and AABBs. Register this new function in theCollisionDetection.collisionFns2D array.
- In the
CollisionDetectionclass, create and implement a new function to test collision between spheres and OBBs. Register this new function in theCollisionDetection.collisionFns2D array.
- You DO NOT NEED to make collisions work in the scene. Tests will only operate on the above criteria.
Grades will be based on the above criteria, which will be assessed automatically using the automated tests provided with the project files.