using cannon.js I needed to rotate some bodies (otherwise the wheels fly onto the body of a car during the first few moments of your scene)… the following code rotates a vector by using a quaternion. More insights into quaternions you can find here
// Rotate the vector according to the quaternion
// quaternion needs to be normalized!!!
function rotateVector(vector, quaternion)
//The given quaternion is R in the form P'=RPR'
//Make a quaternion of the given vector
var quaternionVec = new CANNON.Quaternion(vector.x, vector.y, vector.z, 0); //P
var quaternionCon = quaternion.conjugate(); //R'
var newQuat = quaternion.mult(quaternionVec); //RP
newQuat = newQuat.mult(quaternionCon); //(RP)R'
//New vector is contained in calculated quaternion
return new CANNON.Vec3(newQuat.x, newQuat.y, newQuat.z);
I just saw another cartoon on LinkedIn about innovation.
One thing that is terribly wrong in the public perception of innovation is that it is so totally obvious. It is easy to smile about the cartoon here because the two guys simply do not do the obvious. But sorry, reality is most of the times totally different.
In retrospective it is always so obvious that this or that innovation had to revolutionize the world. The same will happen to us. Because we will miss to explore an innovation which later is so obviously changing the world. Why does this happen?? Because there is not only one guy with the right idea, there are millions of ideas. Some obviously do not work, some might, some go beyond imagination. You simply cannot try them all. You run in the risk to totally waste your resources. The tail of the innovator who starved is a seldomly told story. But how many of those guys we have for one successful innovator can easily be imagined.
So we play safe. Do things we know that work. Run into Innovator’s Dilemmas. Well, obviously that will not help either. What we need is a little bit of both…
I apply for 20% of time, efforts, resources to destroy what you currently do and think of different ways. If you can invest 20% into rethinking what you do, how you do it, experiment, fail and experiment again, it should prevent you from burning all your midnight oil in a senseless manner. But should keep you away from trying to roll with cubes when you could have wheels.
So, the comic above should show 4 more guys (maybe with triangles, drums, an air-cushion…)
Exactly 60 days ago I started my new life as VP Engineering in the Dun Karm Street. Maybe it is time to talk a bit about what we did so far.
I think, one of the major additions to the daily life in Uniblue that I was able to do, are the fancy project names. I will talk about some of them but not all. We started some research projects which I cannot unveil here (sorry). But I will some time later when things matured to a certain state…
Project AngryBirds: Following the future vision of Uniblue, we started to lay out a backend system that will carry this vision. It will contain of a messaging mechanism able to push messages as well as offering a polling interface. It also offers a central mechanism to collect customer feedback, usage and statistical data. The third step will be to detach the website from the processes and data persistence by means of a RESTful API. Yes, you could call this big data and yes, we will use NoSQL and stuff. Within this project we can rely on the enormous knowledge Uniblue has in the backend arena. As usual, the complexity of the system in place to supply an integrated e-commerce experience over a multitude of markets, languages, partners etc. is not seen on the surface. We are currently in the phase of architectural design of the first two parts.
Everything we do needs to support the long term vision that our company has. It also needs to align to the bullhead of VP asking for cloud thinking: Loosely coupling, atomic small parts that can grow and shrink dynamically, ability to survive the chaos monkey…
So much for today while I could talk on for hours sometimes doing things is more interesting than talk about it 😉 Only one more thing: If you would like to be part of this, shoot me a line 😉