- Timestamp:
- May 19, 2006, 12:44:16 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.h
r7711 r7713 56 56 void debug(); 57 57 58 /** @returns true if cd alg returns after detecting first error (default behavour) */ 59 inline bool isAbordOnFirstCollision() const { return this->bAbordOnFirstCollision; } 60 /** sets @param flag true if the alg should return after detection of the first error */ 61 inline void setAbordOnFirstCollision(bool flag) { this->bAbordOnFirstCollision = flag; } 62 58 63 59 64 private: -
trunk/src/lib/collision_detection/obb_tree_node.cc
r7711 r7713 522 522 /* so there is a collision and this is the last box in the tree (i.e. leaf) */ 523 523 /* FIXME: If we would choose || insead of && there would also be asymmetrical cases supported */ 524 if( unlikely(this->nodeRight == NULL &&this->nodeLeft == NULL))524 if( unlikely(this->nodeRight == NULL || this->nodeLeft == NULL)) 525 525 { 526 526 nodeA->collidesWith(nodeB, (((const OBBTreeNode*)&treeNode)->bvElement->center)); … … 542 542 543 543 /* first check all axis */ 544 Vector t;545 float rA = 0.0f;546 float rB = 0.0f;547 Vector l;548 Vector rotAxisA[3];549 Vector rotAxisB[3];544 Vector t; 545 float rA = 0.0f; 546 float rB = 0.0f; 547 Vector l; 548 Vector rotAxisA[3]; 549 Vector rotAxisB[3]; 550 550 551 551 rotAxisA[0] = nodeA->getAbsDir().apply(boxA.axis[0]); -
trunk/src/world_entities/effects/lightning_bolt.cc
r7460 r7713 55 55 this->seedZ = 500.0f; 56 56 this->seedTime = 4.0f; 57 58 this->soundSource = NULL; 59 this->thunderBuffer = NULL; 57 60 58 61 this->soundSource.setSourceNode(this); -
trunk/src/world_entities/playable.cc
r7482 r7713 62 62 this->score = 0; 63 63 this->oldScore = 0; 64 this->collider = NULL; 64 65 65 66 this->bDead = false; -
trunk/src/world_entities/test_entity.cc
r7711 r7713 68 68 this->toList(OM_GROUP_00); 69 69 70 this->lastCollided = NULL; 70 71 this->bDeath = false; 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.