Made the following name changes to Matrix and Quat to clean them up and make
the functionality clear given the name. This will break user code unfortunately so please be away of the following mapping. osg::Matrix::makeTrans(..)?\026 -> osg::Matrix::makeTranslate(..) osg::Matrix::makeRot(..)?\026 -> osg::Matrix::makeRotate(..) osg::Matrix::trans(..)?\026 -> osg::Matrix::translate(..) osg::Quat::makeRot(..)?\026 -> osg::Quat::makeRotate(..) Also updated the rest of the OSG distribution to use the new names, and have removed the old deprecated Matrix methods too.
This commit is contained in:
@@ -32,9 +32,9 @@ void TransformCallback::operator() (osg::Node* node, osg::NodeVisitor* nv)
|
||||
double newTime = fs->getReferenceTime();
|
||||
float delta_angle = _angular_velocity*(newTime-_previousTime);
|
||||
|
||||
osg::Matrix mat = osg::Matrix::trans(-_pivot)*
|
||||
osg::Matrix mat = osg::Matrix::translate(-_pivot)*
|
||||
osg::Matrix::rotate(delta_angle,_axis)*
|
||||
osg::Matrix::trans(_pivot);
|
||||
osg::Matrix::translate(_pivot);
|
||||
|
||||
|
||||
// update the specified transform
|
||||
|
||||
Reference in New Issue
Block a user