Changeset 8657
- Timestamp:
- May 29, 2011, 1:12:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/objects/SpaceBoundaries.cc
r8645 r8657 112 112 Vector3 normalisedVec = (position - this->getPosition()).normalisedCopy(); /* Vektor von Kugelmitte nach aussen */ 113 113 tmp->setCommonDirection ( -1.0 * normalisedVec ); 114 tmp->setCommonUpVector( Vector3::UNIT_Z ); 114 Vector3 upVector = Vector3(normalisedVec.z, normalisedVec.z, -(normalisedVec.x+normalisedVec.y)); 115 upVector.normalise(); 116 tmp->setCommonUpVector( upVector ); 115 117 billboardAdministration tmp2 = { true, tmp }; 116 118 this->billboards_.push_back( tmp2 ); … … 121 123 Vector3 normalisedVec = (position - this->getPosition()).normalisedCopy(); /* Vektor von Kugelmitte nach aussen */ 122 124 current->billy->setCommonDirection ( -1.0 * normalisedVec ); 123 current->billy->setCommonUpVector( Vector3::UNIT_Z ); 125 Vector3 upVector = Vector3(normalisedVec.z, normalisedVec.z, -(normalisedVec.x+normalisedVec.y)); 126 upVector.normalise(); 127 current->billy->setCommonUpVector( upVector ); 124 128 } 125 129 }
Note: See TracChangeset
for help on using the changeset viewer.