Update of /cvsroot/simspark/simspark/spark/oxygen/sceneserver
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18827/oxygen/sceneserver
Modified Files:
Tag: ROSIMPORTER_XLAB
transform.cpp transform.h
Log Message:
Index: transform.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/oxygen/sceneserver/transform.cpp,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -C2 -d -r1.2 -r1.2.8.1
*** transform.cpp 18 Feb 2006 19:48:06 -0000 1.2
--- transform.cpp 20 May 2007 16:31:53 -0000 1.2.8.1
***************
*** 98,101 ****
--- 98,106 ----
}
+ const salt::Vector3f& Transform::GetLocalPos()
+ {
+ return mLocalTransform.Pos();
+ }
+
void Transform::SetLocalRotationRad(const salt::Vector3f &rot)
{
Index: transform.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/oxygen/sceneserver/transform.h,v
retrieving revision 1.2
retrieving revision 1.2.8.1
diff -C2 -d -r1.2 -r1.2.8.1
*** transform.h 18 Feb 2006 19:48:06 -0000 1.2
--- transform.h 20 May 2007 16:31:53 -0000 1.2.8.1
***************
*** 71,74 ****
--- 71,77 ----
void SetLocalPos(const salt::Vector3f &pos);
+ /** returns the local position of this node */
+ const salt::Vector3f& GetLocalPos();
+
/** sets the local rotation of this node in rad */
void SetLocalRotationRad(const salt::Vector3f &rot);
|