Hi guys, thanks for reading this! Here is a very simple playground example!
I already have some basic idea about quaternion and rotation.
The problem is that a quaternion is defined by q = cos(theta/2) + i * sin(theta/2), which i represents the axis, but it only has a direction! Infinite numbers of axis can be defined by only a direction without a init point, so I can only assume that the axis always starts from the center of a mesh.
But what if I wish to rotate a mesh(like this ground) along any certain axis with both a direciton and a init point? Like a line starts from Vector3(0, 2, 0) and points at direction Vector3(1, 0, 0)?
In the example, I tried to move the ground mesh by a given displacement(y = +2), then I rotate it , then I do the opposite displacement, but the ground mesh have the same pose as I do not do any displacement but only rotation.
I wish there is a simple way to rotate a mesh along this line y=2 && direction = (1, 0, 0), by using rotationQuaterion property of a mesh!
Hope I made myself clear!