As the title shown, I want to change the xyz value of a point cloud object.
And I want to rotate the object.
Code: Select all
ccPointCloud pc;
pc.addPoint(CCVector3(x, y, z));
......
// at here, I want to change the xyz value of pc.
I guess that the principles to move a mesh and to rotate a point cloud by matrix are same.
But, Now, I am confused that how to create such a matrix. For examlple, if I want to rotate the 'pc' 90 degrees around the x-axis, what should I do?