Stephen Birarda
94739cf8d3
move number constants out of SharedUtil to NumericalConstants
2015-05-01 10:26:53 -07:00
Andrew Meadows
da9091a99d
remove SHAPE_TYPE_CONVEX_HULL from libs and tests
2015-04-14 14:54:43 -07:00
Philip Rosedale
6a4dbd35b5
Merge pull request #4449 from AndrewMeadows/thermonuclear
...
ShapeManager can release shape by pointer
2015-03-13 17:34:32 -07:00
Andrew Meadows
e4c6d49c4d
ShapeManager can release shape by pointer
2015-03-13 16:36:18 -07:00
Andrew Meadows
d1b977ec9e
remove warnings about unused variables
...
and remind us to impelement unit test for tetrahedron mass props
2015-03-12 16:36:08 -07:00
Andrew Meadows
feafa0a60b
remove old Ragdoll and avatar interactions
2015-03-11 14:29:03 -07:00
Virendra Singh
7954dd4d67
anticlockwise triangle order
2015-03-11 03:27:26 +05:30
Virendra Singh
a0e7125e11
code revamp and correction in parallel axis theorem
2015-03-11 03:11:17 +05:30
Virendra Singh
84e05e361e
Accuracy improved to 0.01
2015-03-06 22:07:35 +05:30
Virendra Singh
42867bf98d
code revamp
2015-03-06 11:10:38 +05:30
Virendra Singh
4627d2e7b5
Parallel axis theorem correction
2015-03-04 03:52:59 +05:30
Virendra Singh
7a129235c2
Mass properties unit tests
2015-03-04 01:12:20 +05:30
Stephen Birarda
6b08b2993a
fix for bullet system include to silence warnings
2015-02-19 13:03:16 -08:00
Stephen Birarda
6f055ca0d7
add an external project to handle bullet
2015-02-19 12:01:40 -08:00
Stephen Birarda
b2e587dbbd
remove use of include_dependency_includes and use cmake
2015-02-18 14:12:05 -08:00
Stephen Birarda
7d25013659
add DLL copying for all project targets
2015-02-17 17:44:58 -08:00
Stephen Birarda
e99012efbb
updates to build guides to remove soxr
2015-02-17 10:33:12 -08:00
Stephen Birarda
8c998a65ee
use the glm find_package and check externals
2015-02-13 12:50:32 -08:00
Stephen Birarda
263afdd22c
use external project glm in physics tests
2015-02-13 10:37:17 -08:00
Andrew Meadows
0ef5d42a5b
unit tests support new ShapeInfo API
2015-02-08 15:13:21 -08:00
Andrew Meadows
ff171a5782
Bullet is now required dependency
2015-01-15 10:27:43 -08:00
Andrew Meadows
6f72d4ad81
easier to read Bullet to GLM conversions and back
2014-12-30 13:15:57 -08:00
Andrew Meadows
439cdbdac1
re-expose unit tests for legacy shapes
2014-12-29 11:15:09 -08:00
Andrew Meadows
71ab4a5780
fix unit ShapeManager unit tests
2014-12-29 11:07:57 -08:00
Andrew Meadows
9b7e50858a
merge upstream/master into andrew/inertia
...
Conflicts:
libraries/avatars/CMakeLists.txt
libraries/entities/CMakeLists.txt
2014-12-29 09:15:49 -08:00
Stephen Birarda
114e3bb2ff
rename cmake macro to represent actual purpose
2014-12-18 16:51:20 -08:00
Andrew Meadows
ad7641c7e0
repairs to build when Bullet not found
2014-12-11 16:05:45 -08:00
Andrew Meadows
919214b7cb
split ShapeInfo into shared and physics parts
2014-12-02 10:44:40 -08:00
Andrew Meadows
8aba2a06e0
Splitting Bullet stuff out of ShapeInfo
2014-12-01 16:47:33 -08:00
Andrew Meadows
37093cbd00
merge upstream/master into andrew/inertia
...
Conflicts:
interface/src/Application.cpp
2014-11-24 11:24:39 -08:00
Atlante45
ae3bcc8f06
No more .f
2014-11-19 16:53:39 -08:00
Andrew Meadows
7c53c7a495
fix build to work when cmake does not fiind Bullet
2014-11-11 12:24:29 -08:00
Andrew Meadows
2734afcf9a
Adding BulletUtil.h with tests.
2014-11-04 16:43:50 -08:00
Andrew Meadows
4a1133fbc2
moved ShapeInfo tests to their own file
2014-11-03 15:25:04 -08:00
Andrew Meadows
aa0172cf8b
Unit tests for ShapeManager
2014-11-03 14:03:05 -08:00
Andrew Meadows
d26540b029
ShapeManager now under unit test
2014-10-31 17:13:17 -07:00
Andrew Meadows
4c3cdf5b7a
move stuff out of shared and into physics library
2014-10-28 13:51:45 -07: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
de0ebf2f57
make sure all test errors have newline at end
2014-08-22 17:33:31 -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
Stephen Birarda
2fda95ae8f
repair build of various tools
2014-08-08 13:17:54 -07:00
Stephen Birarda
b1310c065c
remove TARGET_NAME from cmake macros where it is not required
2014-08-08 13:17:54 -07:00
Stephen Birarda
27419b7b6b
fix some build blockers in test directory
2014-08-08 13:17:54 -07:00
Stephen Birarda
e4d01d269c
use shared dependency linking macro in hifi projects
2014-08-08 13:17:54 -07:00
Stephen Birarda
26f7b1ba62
add macro to link shared dependencies to target
2014-08-08 13:17:54 -07:00
Stephen Birarda
87cf262b9e
get to successful cmake after library link macro changes
2014-08-08 13:17:53 -07:00
Stephen Birarda
2796f71419
library cleanup to suppress warnings on cmake 3.0
2014-07-30 15:06:15 -07:00
Aleric Inglewood
147a4119cb
Fix linker problem
...
This fixes the linker problem:
/usr/bin/ld: error: ../../libraries/shared/libshared.a(StreamUtils.cpp.o): multiple
definition of 'operator<<(std::ostream&, glm::detail::tvec3<float, (glm::precision)0> const&)'
/usr/bin/ld: CMakeFiles/physics-tests.dir/src/PhysicsTestUtil.cpp.o: previous definition here
/usr/bin/ld: error: ../../libraries/shared/libshared.a(StreamUtils.cpp.o): multiple
definition of 'operator<<(std::ostream&, glm::detail::tquat<float, (glm::precision)0> const&)'
/usr/bin/ld: CMakeFiles/physics-tests.dir/src/PhysicsTestUtil.cpp.o: previous definition here
/usr/bin/ld: error: ../../libraries/shared/libshared.a(StreamUtils.cpp.o): multiple
definition of 'operator<<(std::ostream&, glm::detail::tmat4x4<float, (glm::precision)0> const&)'
/usr/bin/ld: CMakeFiles/physics-tests.dir/src/PhysicsTestUtil.cpp.o: previous definition here
collect2: error: ld returned 1 exit status
Note these are the serializers to std::ostream that were already there, not the ones
that I added (which are to QDebug). This bug was already there, I only got these errors
now after adding some debug code.
The reason is obvious: they are already defined in libshared.a (through StreamUtils.cpp).
No need to define them again in ./tests/physics/src/PhysicsTestUtil.cpp
2014-07-13 21:59:45 +02:00
ZappoMan
1001ea5f87
fixed some windows warnings
2014-06-24 20:07:47 -07:00
Andrew Meadows
c17b8fdb60
collisions update shapes
...
VerletShapes keep pointers to VerletPoints (rather than to glm::vec3's)
VerletShapes compute lagrangian coefficients
VerletShapes send their movement accumulations to their VerletPoints
2014-06-20 16:31:39 -07:00
Andrew Meadows
715cc3467d
forgot to add the test files
2014-06-18 14:47:39 -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
ae4b8348a2
fix header include guards via regex
2014-04-09 12:03: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
ZappoMan
1ceb05bf09
click harder
2014-03-08 18:22:30 -08: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