mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix xform
This commit is contained in:
parent
5bfe55d22f
commit
41a3a0a2b7
@ -57,7 +57,7 @@ xform(const FLOATNAME(LVecBase3) &v) const {
|
||||
|
||||
FLOATNAME(LQuaternion) inv;
|
||||
inv.invert_from(*this);
|
||||
v_quat = (*this) * v_quat * inv;
|
||||
v_quat = inv * v_quat * (*this);
|
||||
|
||||
return FLOATNAME(LVecBase3)(v_quat[1], v_quat[2], v_quat[3]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user