- Timestamp:
- Aug 16, 2005, 9:20:20 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc
r5044 r5046 655 655 if( unlikely(this->nodeRight == NULL && this->nodeLeft == NULL)) 656 656 { 657 nodeA->collidesWith(nodeB); 658 nodeB->collidesWith(nodeA); 657 nodeA->collidesWith(nodeB, *((OBBTreeNode*)treeNode)->bvElement->center); 658 659 nodeB->collidesWith(nodeA, *this->bvElement->center); 659 660 } 660 661 -
orxonox/trunk/src/lib/collision_detection/obb_tree_node.h
r5039 r5046 69 69 int tmpLen2; //!< len vert data obbox2 70 70 71 static float** coMat;//!< temp covariance matrice save place - consumes less mem72 static float** eigvMat;//!< temp eigenvector matrice save place73 static float* eigvlMat;//!< temp eigenvalue vector save place74 static int* rotCount;//!< temp rotations count save place: how many givens-rotations where needed to transform the matrix :)71 static float** coMat; //!< temp covariance matrice save place - consumes less mem 72 static float** eigvMat; //!< temp eigenvector matrice save place 73 static float* eigvlMat; //!< temp eigenvalue vector save place 74 static int* rotCount; //!< temp rotations count save place: how many givens-rotations where needed to transform the matrix :) 75 75 76 GLUquadricObj* sphereObj;76 GLUquadricObj* sphereObj; 77 77 }; 78 78 -
orxonox/trunk/src/world_entities/npc.cc
r5044 r5046 43 43 void NPC::collidesWith(WorldEntity* entity, const Vector& location) 44 44 { 45 PRINTF(0)(" COLLISION with an NPC\n");45 PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), entity->getClassName(), location.x, location.y, location.z); 46 46 } 47 47 -
orxonox/trunk/src/world_entities/world_entity.cc
r5044 r5046 97 97 {} 98 98 99 /**100 * this function is called, when two entities collide101 * @param entity: the world entity with whom it collides102 *103 * Implement behaviour like damage application or other miscellaneous collision stuff in this function104 */105 void WorldEntity::collidesWith(WorldEntity* entity)106 {107 PRINTF(0)("COLLISION with a WorldEntity\n");108 }109 110 99 111 100 /** … … 117 106 void WorldEntity::collidesWith(WorldEntity* entity, const Vector& location) 118 107 { 119 PRINTF(0)(" COLLISION with a WorldEntity\n");108 PRINTF(0)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassName(), entity->getClassName(), location.x, location.y, location.z); 120 109 } 121 110 -
orxonox/trunk/src/world_entities/world_entity.h
r5029 r5046 51 51 52 52 virtual void hit (WorldEntity* weapon, Vector* loc); 53 virtual void collidesWith (WorldEntity* entity);54 53 virtual void collidesWith (WorldEntity* entity, const Vector& location); 55 54
Note: See TracChangeset
for help on using the changeset viewer.