ReactPhysics3D is now under the ZLib license
git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@452 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
29d9e60e93
commit
d762312d68
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef BODY_H
|
#ifndef BODY_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef RIGIDBODY_H
|
#ifndef RIGIDBODY_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef COLLISION_DETECTION_H
|
#ifndef COLLISION_DETECTION_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONTACT_INFO_H
|
#ifndef CONTACT_INFO_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
@ -36,5 +37,5 @@ OverlappingPair::OverlappingPair(Body* body1, Body* body2, MemoryPool<Contact>&
|
|||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
OverlappingPair::~OverlappingPair() {
|
OverlappingPair::~OverlappingPair() {
|
||||||
// TODO : MAYBE DELETE THE CONTACTS HERE
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef OVERLAPPING_PAIR_H
|
#ifndef OVERLAPPING_PAIR_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef PERSISTENT_CONTACT_CACHE_H
|
#ifndef PERSISTENT_CONTACT_CACHE_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef BROAD_PHASE_ALGORITHM_H
|
#ifndef BROAD_PHASE_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef NO_BROAD_PHASE_ALGORITHM_H
|
#ifndef NO_BROAD_PHASE_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef SAP_ALGORITHM_H
|
#ifndef SAP_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef EPA_ALGORITHM_H
|
#ifndef EPA_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef EDGE_EPA_H
|
#ifndef EDGE_EPA_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef TRIANGLE_EPA_H
|
#ifndef TRIANGLE_EPA_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef TRIANGLES_STORE_H
|
#ifndef TRIANGLES_STORE_H
|
||||||
|
|||||||
@ -1,26 +1,26 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef GJK_ALGORITHM_H
|
#ifndef GJK_ALGORITHM_H
|
||||||
@ -39,7 +40,6 @@ namespace reactphysics3d {
|
|||||||
const double REL_ERROR = 1.0e-3;
|
const double REL_ERROR = 1.0e-3;
|
||||||
const double REL_ERROR_SQUARE = REL_ERROR * REL_ERROR;
|
const double REL_ERROR_SQUARE = REL_ERROR * REL_ERROR;
|
||||||
|
|
||||||
// TODO : Improve the description here
|
|
||||||
/* -------------------------------------------------------------------
|
/* -------------------------------------------------------------------
|
||||||
Class GJKAlgorithm :
|
Class GJKAlgorithm :
|
||||||
This class implements a narrow-phase collision detection algorithm. This
|
This class implements a narrow-phase collision detection algorithm. This
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef SIMPLEX_H
|
#ifndef SIMPLEX_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef NARROW_PHASE_ALGORITHM_H
|
#ifndef NARROW_PHASE_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef SAT_ALGORITHM_H
|
#ifndef SAT_ALGORITHM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONSTANTS_H
|
#ifndef CONSTANTS_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONSTRAINT_H
|
#ifndef CONSTRAINT_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONTACT_H
|
#ifndef CONTACT_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONSTRAINT_SOLVER_H
|
#ifndef CONSTRAINT_SOLVER_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef PHYSICS_ENGINE_H
|
#ifndef PHYSICS_ENGINE_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
@ -33,7 +34,7 @@ using namespace std;
|
|||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
PhysicsWorld::PhysicsWorld(const Vector3& gravity)
|
PhysicsWorld::PhysicsWorld(const Vector3& gravity)
|
||||||
: gravity(gravity), isGravityOn(true), currentBodyID(0) {
|
: gravity(gravity), isGravityOn(true), currentBodyID(0), memoryPoolRigidBodies(NB_MAX_BODIES) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,10 +45,9 @@ PhysicsWorld::~PhysicsWorld() {
|
|||||||
|
|
||||||
// Create a rigid body into the physics world
|
// Create a rigid body into the physics world
|
||||||
RigidBody* PhysicsWorld::createRigidBody(const Transform& transform, double mass, const Matrix3x3& inertiaTensorLocal, Shape* shape) {
|
RigidBody* PhysicsWorld::createRigidBody(const Transform& transform, double mass, const Matrix3x3& inertiaTensorLocal, Shape* shape) {
|
||||||
// TODO : Use Memory Pool memory allocation for the rigid body instead
|
|
||||||
|
|
||||||
// Create the rigid body
|
// Create the rigid body
|
||||||
RigidBody* rigidBody = new RigidBody(transform, mass, inertiaTensorLocal, shape, currentBodyID);
|
RigidBody* rigidBody = new (memoryPoolRigidBodies.allocateObject()) RigidBody(transform, mass, inertiaTensorLocal, shape, currentBodyID);
|
||||||
|
|
||||||
currentBodyID++;
|
currentBodyID++;
|
||||||
|
|
||||||
@ -59,7 +59,12 @@ RigidBody* PhysicsWorld::createRigidBody(const Transform& transform, double mass
|
|||||||
// Destroy a rigid body
|
// Destroy a rigid body
|
||||||
void PhysicsWorld::destroyRigidBody(RigidBody* rigidBody) {
|
void PhysicsWorld::destroyRigidBody(RigidBody* rigidBody) {
|
||||||
removeRigidBody(rigidBody);
|
removeRigidBody(rigidBody);
|
||||||
delete rigidBody;
|
|
||||||
|
// Call the constructor of the rigid body
|
||||||
|
rigidBody->RigidBody::~RigidBody();
|
||||||
|
|
||||||
|
// Free the object from the memory pool
|
||||||
|
memoryPoolRigidBodies.freeObject(rigidBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove all collision contacts constraints
|
// Remove all collision contacts constraints
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef PHYSICS_WORLD_H
|
#ifndef PHYSICS_WORLD_H
|
||||||
@ -47,13 +48,14 @@ namespace reactphysics3d {
|
|||||||
*/
|
*/
|
||||||
class PhysicsWorld {
|
class PhysicsWorld {
|
||||||
protected :
|
protected :
|
||||||
std::vector<RigidBody*> rigidBodies; // All the rigid bodies of the physics world
|
std::vector<RigidBody*> rigidBodies; // All the rigid bodies of the physics world
|
||||||
std::vector<RigidBody*> addedBodies; // Added bodies since last update
|
std::vector<RigidBody*> addedBodies; // Added bodies since last update
|
||||||
std::vector<RigidBody*> removedBodies; // Removed bodies since last update
|
std::vector<RigidBody*> removedBodies; // Removed bodies since last update
|
||||||
std::vector<Constraint*> constraints; // List that contains all the current constraints
|
std::vector<Constraint*> constraints; // List that contains all the current constraints
|
||||||
Vector3 gravity; // Gravity vector of the world
|
Vector3 gravity; // Gravity vector of the world
|
||||||
bool isGravityOn; // True if the gravity force is on
|
bool isGravityOn; // True if the gravity force is on
|
||||||
long unsigned int currentBodyID; // Current body ID
|
long unsigned int currentBodyID; // Current body ID
|
||||||
|
MemoryPool<RigidBody> memoryPoolRigidBodies; // Memory pool for rigid bodies memory allocation
|
||||||
|
|
||||||
void addRigidBody(RigidBody* body); // Add a body to the physics world
|
void addRigidBody(RigidBody* body); // Add a body to the physics world
|
||||||
void removeRigidBody(RigidBody* body); // Remove a body from the physics world
|
void removeRigidBody(RigidBody* body); // Remove a body from the physics world
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef TIMER_H
|
#ifndef TIMER_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef QUATERNION_H
|
#ifndef QUATERNION_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef TRANSFORM_H
|
#ifndef TRANSFORM_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef VECTOR3_H
|
#ifndef VECTOR3_H
|
||||||
@ -30,9 +31,6 @@
|
|||||||
#include "exceptions.h"
|
#include "exceptions.h"
|
||||||
#include "mathematics_functions.h"
|
#include "mathematics_functions.h"
|
||||||
|
|
||||||
// TODO : Remove the methods getX(), getY(), getZ(), setX(), setY(), setZ() and replace the attributes
|
|
||||||
// x, y and z by an array values[3]
|
|
||||||
|
|
||||||
|
|
||||||
// ReactPhysics3D namespace
|
// ReactPhysics3D namespace
|
||||||
namespace reactphysics3d {
|
namespace reactphysics3d {
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef EXCEPTIONS_H
|
#ifndef EXCEPTIONS_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef MATHEMATICS_H
|
#ifndef MATHEMATICS_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef MATHEMATICS_FUNCTIONS_H
|
#ifndef MATHEMATICS_FUNCTIONS_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef MEMORY_POOL_H
|
#ifndef MEMORY_POOL_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef AABB_H
|
#ifndef AABB_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef BOX_SHAPE_H
|
#ifndef BOX_SHAPE_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CONE_SHAPE_H
|
#ifndef CONE_SHAPE_H
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef CYLINDER_SHAPE_H
|
#ifndef CYLINDER_SHAPE_H
|
||||||
@ -29,8 +30,6 @@
|
|||||||
#include "Shape.h"
|
#include "Shape.h"
|
||||||
#include "../mathematics/mathematics.h"
|
#include "../mathematics/mathematics.h"
|
||||||
|
|
||||||
// TODO : CHECK THAT THE AABB IS CORRECT
|
|
||||||
// TODO : TEST THIS SHAPE WITH GJK AND EPA ALGORITHMS
|
|
||||||
|
|
||||||
// ReactPhysics3D namespace
|
// ReactPhysics3D namespace
|
||||||
namespace reactphysics3d {
|
namespace reactphysics3d {
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,26 +1,26 @@
|
|||||||
/****************************************************************************
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2010 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef SHAPE_H
|
#ifndef SHAPE_H
|
||||||
|
|||||||
@ -1,26 +1,26 @@
|
|||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
// Libraries
|
// Libraries
|
||||||
|
|||||||
@ -1,25 +1,26 @@
|
|||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
* ReactPhysics3D physics library, http://code.google.com/p/reactphysics3d/ *
|
||||||
* Copyright (c) 2011 Daniel Chappuis *
|
* Copyright (c) 2010-2012 Daniel Chappuis *
|
||||||
*********************************************************************************
|
*********************************************************************************
|
||||||
* *
|
* *
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy *
|
* This software is provided 'as-is', without any express or implied warranty. *
|
||||||
* of this software and associated documentation files (the "Software"), to deal *
|
* In no event will the authors be held liable for any damages arising from the *
|
||||||
* in the Software without restriction, including without limitation the rights *
|
* use of this software. *
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell *
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is *
|
|
||||||
* furnished to do so, subject to the following conditions: *
|
|
||||||
* *
|
* *
|
||||||
* The above copyright notice and this permission notice shall be included in *
|
* Permission is granted to anyone to use this software for any purpose, *
|
||||||
* all copies or substantial portions of the Software. *
|
* including commercial applications, and to alter it and redistribute it *
|
||||||
|
* freely, subject to the following restrictions: *
|
||||||
|
* *
|
||||||
|
* 1. The origin of this software must not be misrepresented; you must not claim *
|
||||||
|
* that you wrote the original software. If you use this software in a *
|
||||||
|
* product, an acknowledgment in the product documentation would be *
|
||||||
|
* appreciated but is not required. *
|
||||||
|
* *
|
||||||
|
* 2. Altered source versions must be plainly marked as such, and must not be *
|
||||||
|
* misrepresented as being the original software. *
|
||||||
|
* *
|
||||||
|
* 3. This notice may not be removed or altered from any source distribution. *
|
||||||
* *
|
* *
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, *
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN *
|
|
||||||
* THE SOFTWARE. *
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
#ifndef SPHERE_SHAPE_H
|
#ifndef SPHERE_SHAPE_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user