- Timestamp:
- Dec 16, 2017, 12:24:20 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17
- Property svn:mergeinfo changed
-
code/branches/Presentation_HS17/src/modules/superorxobros/SOBQBlock.cc
r11416 r11678 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 if (!used_ && v_z > 50.0 && collDisZ_ > 0) { 65 68 used_ = true; 66 69
Note: See TracChangeset
for help on using the changeset viewer.