Changeset 6098
- Timestamp:
- 02/06/07 14:44:20
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph/trunk/src/osgPlugins/OpenFlight/PrimaryRecords.cpp
r6091 r6098 954 954 { 955 955 // TODO: What direction is zero yaw and pitch? 956 osg::Quat rotation( osg::Quat(osg::inDegrees(yaw),osg::Vec3(0.0,0.0,1.0)) * osg::Quat(osg::inDegrees(pitch),osg::Vec3(1.0,0.0,0.0)) ); 956 osg::Quat rotation = ( osg::Quat(osg::inDegrees(double(yaw)),osg::Vec3(0.0,0.0,1.0)) * 957 osg::Quat(osg::inDegrees(double(pitch)),osg::Vec3(1.0,0.0,0.0)) ); 957 958 light->setDirection(rotation*osg::Vec3(0.0,1.0,0.0)); 958 959 }
