Changeset 3359 for d-collide

Show
Ignore:
Timestamp:
03/21/08 16:32:42 (2 years ago)
Author:
horst
Message:

Added the last rigid object collision benchmark (helicopter which flies into a tower of boxes)

Location:
d-collide/trunk/d-collide/testapp
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • d-collide/trunk/d-collide/testapp/CMakeLists.txt

    r3347 r3359  
    8787 
    8888        scenes/benchmark/mixed.cpp 
     89        scenes/benchmark/rigid.cpp 
    8990        scenes/benchmark/deformable.cpp 
    9091 
  • d-collide/trunk/d-collide/testapp/myobjectnode.cpp

    r2943 r3359  
    334334} 
    335335 
     336void MyObjectNode::setRotation(float angle, float x, float y, float z, bool movePhysicsBody) { 
     337    dcollide::Matrix m; 
     338    m.rotate(angle, x,y,z); 
     339    setRotation(m, movePhysicsBody); 
     340} 
     341 
    336342/*! 
    337343 * \brief rotates the Proxy,the OGRE node, and (if it exists) the physics body 
  • d-collide/trunk/d-collide/testapp/myobjectnode.h

    r2943 r3359  
    8080        virtual void rotate(float angle, float x, float y, float z, bool respectOrientation = true); 
    8181        virtual void rotate(const dcollide::Matrix& rotationMatrix, bool respectOrientation = true); 
    82         //void setRotation(float angle, float x, float y, float z, bool movePhysicsBody = true); 
     82        void setRotation(float angle, float x, float y, float z, bool movePhysicsBody = true); 
    8383        virtual void setRotation(const dcollide::Matrix& rotationMatrix, bool movePhysicsBody = true); 
    8484