Update of /cvsroot/gcblue/gcb_wx/src/graphics
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2303/src/graphics
Modified Files:
tc3DModel.cpp
Log Message:
Index: tc3DModel.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/graphics/tc3DModel.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** tc3DModel.cpp 6 Aug 2004 02:47:51 -0000 1.11
--- tc3DModel.cpp 9 Aug 2004 02:35:15 -0000 1.12
***************
*** 122,125 ****
--- 122,131 ----
ai.omega = 10.0f;
}
+ else if (info.animationType == "rotor")
+ {
+ ai.axis = osg::Vec3(0,0,1.0f);
+ ai.animationType = 2;
+ ai.omega = 10.0f;
+ }
else
{
***************
*** 347,354 ****
tcAnimationInfo& info = animationInfo[n];
info.switchVariable = NULL;
! if (info.animationType == 0) // propeller
{
}
! else if (info.animationType == 1) // sensor
{
if (tcPlatformObject *plat = dynamic_cast<tcPlatformObject*>(obj))
--- 353,363 ----
tcAnimationInfo& info = animationInfo[n];
info.switchVariable = NULL;
! if (info.animationType == 0) // propeller, no switch var for now
{
}
! else if (info.animationType == 2) // rotor, no switch var for now
! {
! }
! else if (info.animationType == 1) // sensor, use switch var for sensor activity
{
if (tcPlatformObject *plat = dynamic_cast<tcPlatformObject*>(obj))
|