1 #include <OGRE/OgreVector3.h>
2 #include <OGRE/OgreSceneNode.h>
3 #include <OGRE/OgreSceneManager.h>
49 int directions =
msg->directions;
50 std::vector<float> powers =
msg->powers;
63 if ( powers[0] == 0.0 ){
return;}
69 for (
int i = 0; i <= directions ; i++) {
70 float biased_power = (powers[(i%directions)] -
bias_) *
grad_;
71 if (biased_power <= 0.0) { biased_power = 0.001; }
72 Ogre::Vector3 point = Ogre::Vector3((biased_power*
scale_)*cos(i*(2*M_PI/directions)- M_PI), (biased_power*
scale_)*sin(i*(2*M_PI/directions) - M_PI), 0);