Changeset 8216 in orxonox.OLD for branches/bsp_model/src/world_entities
- Timestamp:
- Jun 7, 2006, 9:33:10 PM (19 years ago)
- Location:
- branches/bsp_model/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/world_entities/world_entity.cc
r8195 r8216 410 410 * @param position it collides on the plane 411 411 */ 412 bool WorldEntity::registerCollision(WorldEntity* entity, Plane* plane, Vector position)412 bool WorldEntity::registerCollision(WorldEntity* entity, Vector normal, Vector position) 413 413 { 414 414 // is there any handler listening? … … 419 419 CollisionEvent* c = CREngine::getInstance()->popCollisionEventObject(); 420 420 assert(c != NULL); // if this should fail: we got not enough precached CollisionEvents: alter value in cr_defs.h 421 c->collide(entity, plane, position);421 c->collide(entity, normal, position); 422 422 423 423 for( int i = 0; i < CREngine::CR_NUMBER; ++i) … … 504 504 Vector u = Vector(0.0,-20.0,0.0); 505 505 506 506 507 507 if(!(this->getAbsCoor().x == ray_2.x && this->getAbsCoor().y == ray_2.y && this->getAbsCoor().z == ray_2.z) ) 508 508 { … … 521 521 522 522 } 523 524 523 524 525 525 } 526 526 -
branches/bsp_model/src/world_entities/world_entity.h
r8190 r8216 29 29 class CollisionHandle; 30 30 class Collision; 31 class Plane;32 31 33 32 … … 86 85 87 86 bool registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB); 88 bool registerCollision(WorldEntity* entity, Plane* plane, Vector position);87 bool registerCollision(WorldEntity* entity, Vector normal, Vector position); 89 88 /** @return true if there is at least on collision reaction subscribed */ 90 89 inline bool isReactive() const { return this->bReactive; }
Note: See TracChangeset
for help on using the changeset viewer.