Advertisement
Guest User

VS Issue

a guest
Aug 16th, 2017
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #ifndef TRANSFORMER_SCRIPT_CPP
  2. #define TRANSFORMER_SCRIPT_CPP
  3.  
  4. #include "../header/Behaviour.h"
  5. #include "../header/Transform.h"
  6. #include "../header/Time.h"
  7.  
  8. class TransformerScript: public Behaviour {
  9. public:
  10.     // This is the mentioned speed float value
  11.     float speed = 0;
  12.  
  13.     void Update() {
  14.         transform->setRotation(Vector3f(0, transform->getRotation().y() + Time::deltaTime * speed, 0));
  15.     }
  16. };
  17.  
  18. #endif // TRANSFORMER_SCRIPT_CPP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement