- Timestamp:
- Nov 27, 2017, 1:39:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBQBlock.cc
r11416 r11591 39 39 #include "SOBMushroom.h" 40 40 #include "SOBCoin.h" 41 #include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h> 42 41 43 42 44 namespace orxonox … … 62 64 //If you hit the QBlock, the visibility of all attached objects get inverted! Pretty easy way to create changing blocks :) 63 65 float v_z = otherObject->getVelocity().z; 64 if (!used_ && v_z > 50.0) { 66 int collDisZ_ = getPosition().z - contactPoint.getPositionWorldOnB().getZ(); 67 orxout() << "Distanz in z: " << collDisZ_ << endl; 68 if (!used_ && v_z > 50.0 && collDisZ_ > 0) { 65 69 used_ = true; 66 70
Note: See TracChangeset
for help on using the changeset viewer.