- Timestamp:
- 11/17/05 10:57:40 (8 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgsimulation/osgsimulation.cpp
r4722 r4794 153 153 if (ellipsoid) 154 154 { 155 osg::Matrix d matrix;155 osg::Matrix inheritedMatrix; 156 156 for(i+=1; i<nodePath.size()-1; ++i) 157 157 { 158 158 osg::Transform* transform = nodePath[i]->asTransform(); 159 if (transform) transform->computeLocalToWorldMatrix( matrix, nv);159 if (transform) transform->computeLocalToWorldMatrix(inheritedMatrix, nv); 160 160 } 161 162 osg::Matrixd matrix(inheritedMatrix); 161 163 162 164 //osg::Matrixd matrix; 163 165 ellipsoid->computeLocalToWorldTransformFromLatLongHeight(_latitude,_longitude,_height,matrix); 164 matrix.preMult(osg::Matrix d::rotate(_rotation));166 matrix.preMult(osg::Matrix::rotate(_rotation)); 165 167 166 168 mt->setMatrix(matrix);
