At this point, I dont know what to do, maybe panda has some fancy function that does this for me, maybe not. What would you do if you had this problem? Is there any function to get an angle between 2 3d points?
You can get the angle between 3 points say A, B, C (where A is the apex of the other two points) by first finding the vecotrs AB and AC (by subtraction) and then:
Hello, I know this post is too old, but I faced the same problem.
I have 3d model and I want to know the angle between two 3D points in order to rotate that model with a correct angle.
I just didn’t get what are the someVector andotherVector ? and how I can get them from these two 3D points
I think that those are just arbitrary example vectors, intended to show a means by which one can get the angle between two vectors.
I don’t think that two points do inherently define a single angle.
Two points define a line or a vector; from that, one can then calculate an angle between that vector and some other, reference vector.
In your case, I’d imagine that this reference vector might be either the world-space “up” vector (i.e. a vector pointing directly upwards), or the vehicle’s “forward” vector with the vertical component removed (i.e. the direction in which it would be pointing if it were on flat ground).