Seiji Emery
a48adf5ce5
Cleanup + formatting
2015-06-30 14:12:58 -07:00
Seiji Emery
e81b0a3c3a
Fixed tests for ALL_BUILD
...
Fixed physics tests, disabled out-of-date octree tests, and renamed /
added QTestExtensions to the tests folder (IDE view).
ALL_BUILD will now succeed.
2015-06-26 13:31:31 -07:00
Seiji Emery
67093cb9bd
Refactoring
...
Renamed QFUZZY_COMPARE to QCOMPARE_WITH_ABS_ERROR (and the fuzzyCompare function to getErrorDifference)
2015-06-24 16:34:03 -07:00
Seiji Emery
0d9a661839
physics test cleanup
2015-06-22 15:55:34 -07:00
Seiji Emery
c2b7f70d2b
ShapeColliderTests now uses QtTest
2015-06-22 15:25:24 -07:00
Seiji Emery
16dd5e0590
Added a custom test macro, QFUZZY_COMPARE (compares two values with an explicit error tolerance), and the infrastructure for defining more.
...
Reworked physics test files, but they're a WIP.
2015-06-21 09:29:09 -07:00
Seiji Emery
d75f3b1398
Fixed test target dependencies (which were not getting added into the *-tests build targets)
2015-06-20 11:49:26 -07:00
Seiji Emery
64922ecc62
Setup cmake build files for QtTest-based unit tests.
2015-06-19 21:39:34 -07:00
Seth Alves
508ae276c6
enable -Wdouble-promotion
2015-06-16 18:23:10 -07:00
Atlante45
ae3bcc8f06
No more .f
2014-11-19 16:53:39 -08:00
Andrew Meadows
c475d5db36
unit tests for ray-vs-AACubeShape and PlaneShape
2014-09-12 08:41:28 -07:00
Andrew Meadows
08e5dbadfd
added validation of RayIntersectionInfo::_hitShape
2014-09-11 09:44:41 -07:00
Andrew Meadows
0494ffcf38
implement Ray-vs-Capsule and Ray-vs-AACube
2014-09-10 17:01:51 -07:00
Andrew Meadows
4da1ca22ba
Add RayIntersectionInfo and use for shape-vs-ray
2014-09-09 17:35:06 -07:00
Andrew Meadows
a0eb13f6db
collision logic for capsule-side-vs-cube-face
...
with unit tests
2014-08-29 14:23:00 -07:00
Andrew Meadows
00913d4422
fixes for capsuleVsAACube() with unit tests
2014-08-28 16:51:16 -07:00
Andrew Meadows
f1ae0ce992
moved some functions around
2014-08-27 12:21:03 -07:00
Andrew Meadows
c6253bb51a
AACube vs Sphere and Capsule collision tests
...
Sphere is unit tested.
Also removed the shape collision query against Octree
2014-08-27 12:09:41 -07:00
Andrew Meadows
1bd7734ec1
sometimes swap order of shapes for simpler code
2014-08-22 18:07:11 -07:00
Andrew Meadows
5d39efea82
make sure each test error has a newline at end
2014-08-22 17:26:19 -07:00
Andrew Meadows
1be922f986
add shapeVsList etc to dispatch table
...
renamed some functions for more readability
2014-08-22 11:20:53 -07:00
Andrew Meadows
3ebd8c1969
use dispatchTable for shape-vs-shape collisions
2014-08-21 16:40:25 -07:00
ZappoMan
1001ea5f87
fixed some windows warnings
2014-06-24 20:07:47 -07:00
Andrew Meadows
96eebec0fc
unit tests for VerletShapes
2014-06-18 14:06:00 -07:00
Andrew Meadows
9e839f0980
Shape::getCenter() -> Shape::getTranslation()
2014-06-18 08:55:48 -07:00
Andrew Meadows
b9d4545aef
merge upstream/master into andrew/ragdoll
...
Conflicts:
libraries/shared/src/Shape.h
libraries/shared/src/ShapeCollider.h
2014-06-17 17:03:16 -07:00
Andrew Meadows
f18864bd72
Moved findRayIntersection() to the Shape classes
2014-06-17 12:36:36 -07:00
Andrew Meadows
fa6aed3e01
Add unit tests for ray intersections with shapes.
2014-06-17 10:49:53 -07:00
Andrew Meadows
92159a7ed5
Shape::get/setCenter() instead of get/setPosition()
2014-06-16 08:43:27 -07:00
Andrew Meadows
1d64262067
whoops, committed wrong file. Rolling back.
2014-05-05 08:46:35 -07:00
Andrew Meadows
6cc8d53a6d
fix sphere-cube collisions at edges
2014-05-04 22:14:05 -07:00
Andrew Meadows
c8e56a97cc
fix sphere-cube collisions, with tests
2014-05-02 21:47:27 -07:00
Andrew Meadows
fe42f66cc9
change x.f to be x.0f as per the coding standard
2014-04-23 13:27:43 -07:00
Andrew Meadows
7cb6856415
Adding some collision tests for sphere-vs-AACube
2014-04-22 10:44:41 -07:00
Andrew Meadows
22d2f84cff
merge upstream/master into andrew/scripting
2014-04-09 15:38:56 -07:00
Andrew Meadows
635f832dfe
rename shapeShape() to be collideShapes()
...
Also add collideShapesCoarse()
2014-04-09 13:04:17 -07:00
Stephen Birarda
c9b58c0ee9
fix headers in h files in tests, fix Andrew's dates
2014-04-09 09:49:47 -07:00
Stephen Birarda
cb402e3eb3
run apache header script on tests
2014-04-09 09:46:43 -07:00
Andrew Meadows
c383b69b61
merge upstream/master into enforce-standard
...
Conflicts:
interface/src/avatar/Hand.cpp
2014-03-27 10:53:54 -07:00
Andrew Meadows
4c64c11144
making some type casts abide by coding standard
2014-03-26 16:58:47 -07:00
Andrew Meadows
06fbd49ffa
Adding StreamUtils for common debug output
2014-03-25 15:29:22 -07:00
Andrew Meadows
ab84526a1b
removing compile warnings
2014-03-14 16:12:32 -07:00
Andrew Meadows
aa8c2fc8cb
use radians instead of degrees (almost) everywhere
2014-03-11 17:26:58 -07:00
Andrew Meadows
ea0bc52e12
removing unused variables
2014-03-04 09:56:06 -08:00
Andrew Meadows
da0276ac7e
ShapeCollider takes CollisionList argument
...
Also, adding first pass at ListShape
2014-02-26 12:10:16 -08:00
Andrew Meadows
f0e1a6ccd3
more capsuleCapsule tests
2014-02-25 11:38:08 -08:00
Andrew Meadows
9a70a50bdb
capsuleCapsule() collision with preliminary tests
2014-02-25 10:59:12 -08:00
Andrew Meadows
8a3640f016
Adding CapsuleSphere collisions with tests.
2014-02-24 11:38:27 -08:00
Andrew Meadows
0e28e0947c
Adding ShapeColliderTests.*
2014-02-22 13:20:47 -08:00
Andrew Meadows
072369abfe
Adding physics test framework
2014-02-21 16:27:44 -08:00