Changeset 8341 in orxonox.OLD for branches/bsp_model
- Timestamp:
- Jun 13, 2006, 12:00:01 PM (18 years ago)
- Location:
- branches/bsp_model/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/lib/collision_reaction/collision_handle.cc
r8337 r8341 227 227 { 228 228 if( collisionEvent->getEntityA() == this->owner) { 229 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) 229 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) { 230 PRINTF(0)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassName(), 231 collisionEvent->getEntityB()->getClassName(), *it); 230 232 return true; } 233 } 231 234 else { 232 if( collisionEvent->getEntityA()->isA((ClassID)(*it))) 233 return true; } 235 if( collisionEvent->getEntityA()->isA((ClassID)(*it))) { 236 PRINTF(0)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassName(), 237 collisionEvent->getEntityA()->getClassName(), *it); 238 return true; } 239 } 234 240 } 235 241 -
branches/bsp_model/src/lib/collision_reaction/cr_physics_ground_walk.cc
r8338 r8341 63 63 // collision->getEntityB()->getAbsCoor().debug(); 64 64 65 collision->getEntityB()->setVelocity(Vector()); 66 collision->getEntityB()->setAbsCoor(this->lastPositions[5]); 65 PRINTF(0)("Collision with Ground: \n"); 66 collision->getEntityB()->getAbsCoor().debug(); 67 68 //collision->getEntityB()->setVelocity(Vector()); 69 //collision->getEntityB()->setAbsCoor(this->lastPositions[5]); 67 70 } 68 71 -
branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc
r8336 r8341 940 940 // Return the normal here: Normal's stored in this->collPlane; 941 941 if(collision ) { 942 PRINTF(0)("We got a collision!! Are you sure: outputFraction = %f\n", this->outputFraction);942 // PRINTF(0)("We got a collision!! Are you sure: outputFraction = %f\n", this->outputFraction); 943 943 worldEntity->registerCollision(this->parent, worldEntity, Vector(this->collPlane->x, this->collPlane->y, this->collPlane->z), out); 944 944 } -
branches/bsp_model/src/world_entities/space_ships/collision_probe.cc
r8338 r8341 45 45 { 46 46 this->init(); 47 47 48 if (root != NULL) 48 49 this->loadParams(root); 49 50 50 } 51 51 … … 66 66 this->loadMD2Texture("maps/dr_freak.pcx"); 67 67 this->loadModel("models/dr_freak.md2"); 68 69 this->localVelocity = Vector(0,-4,0); 68 70 } 69 71 … … 97 99 if( likely(this->getModel(0) != NULL)) 98 100 ((MD2Model*)this->getModel(0))->tick(time); 101 102 this->shiftCoor(this->localVelocity * time); 99 103 } 104 100 105 101 106 /** -
branches/bsp_model/src/world_entities/space_ships/collision_probe.h
r8338 r8341 9 9 #include "playable.h" 10 10 11 class Vector; 12 11 #include "vector.h" 13 12 14 13 class CollisionProbe : public Playable … … 52 51 int controlVelocityY; 53 52 53 Vector localVelocity; //!< velocity this entity flights with 54 54 55 55 }; -
branches/bsp_model/src/world_entities/world_entity.cc
r8219 r8341 77 77 78 78 // registering default reactions: 79 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY); 80 this->subscribeReaction(CREngine::CR_PHYSICS_GROUND, CL_TERRAIN); 79 // this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY); 81 80 82 81 this->toList(OM_NULL);
Note: See TracChangeset
for help on using the changeset viewer.