I have been developing that an CG object in Panda3D space is controlled with an information from the external sensor.
This sensor measures 3-dimensional position and direction vector of the real object moving in 3D real space.
And I am trying that the CG object moves in the same way to the real object.
The sensor gives only the direction vector, not Hpr.
So I have to convert the direction vector to Hpr because the Panda3D requires Hpr not direction vector to define the direction of the object.
But, I can not find the method to conversion.
Anyone could tell me the method.