Changeset 8195 in orxonox.OLD for branches/bsp_model/src/world_entities
- Timestamp:
- Jun 7, 2006, 3:14:46 PM (19 years ago)
- Location:
- branches/bsp_model/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/bsp_model/src/world_entities/bsp_entity.cc
r8186 r8195 96 96 void BSPEntity::tick(float time) 97 97 { 98 98 this->bspManager->tick(time); 99 99 } 100 100 -
branches/bsp_model/src/world_entities/world_entity.cc
r8190 r8195 499 499 500 500 Vector v = this->getAbsDirX(); 501 v.x *= 10; 502 v.y *= 10; 503 v.z *= 10; 504 Vector u = this->getAbsDirY(); 505 506 if(feet.x == (u.x+this->getAbsCoor().x) && feet.y == u.y +this->getAbsCoor().y && feet.z == this->getAbsCoor().z) 501 v.x *= 10.1; 502 v.y *= 10.1; 503 v.z *= 10.1; 504 Vector u = Vector(0.0,-20.0,0.0); 505 506 507 if(!(this->getAbsCoor().x == ray_2.x && this->getAbsCoor().y == ray_2.y && this->getAbsCoor().z == ray_2.z) ) 507 508 { 508 509 509 510 this->setAbsCoor(ray_2 - v); 510 } 511 else 511 512 } 513 else 512 514 { 513 515 if(ray_1.x == this->getAbsCoor().x + v.x && ray_1.y == this->getAbsCoor().y + v.y + 0.1 && ray_1.z ==this->getAbsCoor().z + v.z) … … 519 521 520 522 } 523 524 521 525 } 522 526
Note: See TracChangeset
for help on using the changeset viewer.