[2430] | 1 | /* |
---|
| 2 | Bullet Continuous Collision Detection and Physics Library |
---|
| 3 | Copyright (c) 2003-2008 Erwin Coumans http://bulletphysics.com |
---|
| 4 | |
---|
| 5 | This software is provided 'as-is', without any express or implied warranty. |
---|
| 6 | In no event will the authors be held liable for any damages arising from the use of this software. |
---|
| 7 | Permission is granted to anyone to use this software for any purpose, |
---|
| 8 | including commercial applications, and to alter it and redistribute it freely, |
---|
| 9 | subject to the following restrictions: |
---|
| 10 | |
---|
| 11 | 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. |
---|
| 12 | 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. |
---|
| 13 | 3. This notice may not be removed or altered from any source distribution. |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #include "btActivatingCollisionAlgorithm.h" |
---|
| 17 | #include "btCollisionDispatcher.h" |
---|
| 18 | #include "btCollisionObject.h" |
---|
| 19 | |
---|
| 20 | btActivatingCollisionAlgorithm::btActivatingCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo& ci) |
---|
| 21 | :btCollisionAlgorithm(ci) |
---|
| 22 | //, |
---|
| 23 | //m_colObj0(0), |
---|
| 24 | //m_colObj1(0) |
---|
| 25 | { |
---|
| 26 | } |
---|
| 27 | btActivatingCollisionAlgorithm::btActivatingCollisionAlgorithm (const btCollisionAlgorithmConstructionInfo& ci, btCollisionObject* colObj0,btCollisionObject* colObj1) |
---|
| 28 | :btCollisionAlgorithm(ci) |
---|
| 29 | //, |
---|
| 30 | //m_colObj0(0), |
---|
| 31 | //m_colObj1(0) |
---|
| 32 | { |
---|
| 33 | // if (ci.m_dispatcher1->needsCollision(colObj0,colObj1)) |
---|
| 34 | // { |
---|
| 35 | // m_colObj0 = colObj0; |
---|
| 36 | // m_colObj1 = colObj1; |
---|
| 37 | // |
---|
| 38 | // m_colObj0->activate(); |
---|
| 39 | // m_colObj1->activate(); |
---|
| 40 | // } |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | btActivatingCollisionAlgorithm::~btActivatingCollisionAlgorithm() |
---|
| 44 | { |
---|
| 45 | // m_colObj0->activate(); |
---|
| 46 | // m_colObj1->activate(); |
---|
| 47 | } |
---|