Ignore:
Timestamp:
11/10/08 18:43:06 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3114 r3115  
    905905                buddha->GetShape(0)->GetMaterial()->GetTechnique(1)->GetVertexProgramParameters(); 
    906906 
    907         static Matrix4x4 oldTrafo; 
    908  
    909         oldTrafo = buddha->GetTransform()->GetMatrix(); 
    910         //vtxParams->SetMatrix(2, oldTrafo); 
    911  
     907        Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); 
    912908        Vector3 buddhaPos = motionPath->GetCurrentPosition(); 
    913909        Matrix4x4 trafo = TranslationMatrix(buddhaPos); 
     
    915911        buddha->GetTransform()->SetMatrix(trafo); 
    916912 
    917         //vtxParams->SetMatrix(1, buddha->GetTransform()->GetMatrix()); 
     913        Matrix4x4 rotMatrix = RotationZMatrix(M_PI * 1e-3f); 
     914 
     915        dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 
    918916 
    919917 
Note: See TracChangeset for help on using the changeset viewer.